add ctx to error-handling example
This commit is contained in:
parent
a1edb2fe7c
commit
258f662543
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue