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

Error Handler: Why not use it for all errors #20

Open
astanciu opened this issue Nov 5, 2016 · 0 comments
Open

Error Handler: Why not use it for all errors #20

astanciu opened this issue Nov 5, 2016 · 0 comments

Comments

@astanciu
Copy link

astanciu commented Nov 5, 2016

Why isn't the errorHandler function invoked for all errors, including 500 response codes:
https://github.com/kadirahq/lokka-transport-http/blob/master/lib/index.js#L77

Seems strange that if I want to catch those, I have to use a try/catch along with the error handler

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