sjmeverett / express-decorators

ES2015 decorators for express
45 stars 9 forks source link

Cannot handle errors #6

Closed breezewish closed 7 years ago

breezewish commented 7 years ago

an error handling middleware should be able to handle exceptions in the action, for example:

app.use((err, req, res, next) => {
  // ....
});

However when using this module I only got:

Error: .....
    at Handler.<anonymous> (....)
    at ....../node_modules/express-decorators/index.js:45:38
breezewish commented 7 years ago

Sorry, my fault. missed a parameter in my error handler