diff --git a/examples/errors.js b/examples/errors.js index 41f2442..c2d5227 100644 --- a/examples/errors.js +++ b/examples/errors.js @@ -20,7 +20,7 @@ app.use(function(next){ // want to delegate to the regular app // level error handling as well so that // centralized still functions correctly. - this.app.emit('error', err); + this.app.emit('error', err, this); } } });