kadirahq / lokka-transport-http

HTTP Transport Layer for Lokka
MIT License
41 stars 38 forks source link

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

Open astanciu opened 8 years ago

astanciu commented 8 years ago

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