Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Your error middleware is never used, and wouldn't work if it was #28

Open
mantagen opened this issue Aug 30, 2017 · 0 comments
Open

Your error middleware is never used, and wouldn't work if it was #28

mantagen opened this issue Aug 30, 2017 · 0 comments

Comments

@mantagen
Copy link

You have pageNotFound handler which is at all routes '/*' and will close the request before your error handling middleware.

Also, even if you didn't have that, your error handling middleware tries to render a view called 'error' which you is not in your views folder...
https://github.com/FACG2/TBH/blob/master/src/app.js#L30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant