add ctx to error-handling example

This commit is contained in:
TJ Holowaychuk 2013-08-31 09:19:05 -07:00
parent a1edb2fe7c
commit 258f662543

View file

@ -20,7 +20,7 @@ app.use(function(next){
// want to delegate to the regular app // want to delegate to the regular app
// level error handling as well so that // level error handling as well so that
// centralized still functions correctly. // centralized still functions correctly.
this.app.emit('error', err); this.app.emit('error', err, this);
} }
} }
}); });