commit
9046d080be
1 changed files with 3 additions and 4 deletions
|
@ -1,4 +1,3 @@
|
|||
|
||||
/**
|
||||
* Module dependencies.
|
||||
*/
|
||||
|
@ -592,12 +591,12 @@ module.exports = {
|
|||
// handler and log.
|
||||
if (this.headerSent) {
|
||||
err.headerSent = true;
|
||||
this.app.emit('error', err);
|
||||
this.app.emit('error', err, this);
|
||||
return;
|
||||
}
|
||||
|
||||
// delegate
|
||||
this.app.emit('error', err);
|
||||
this.app.emit('error', err, this);
|
||||
|
||||
// err.status support
|
||||
if (err.status) {
|
||||
|
@ -915,4 +914,4 @@ function escape(html) {
|
|||
.replace(/"/g, '"')
|
||||
.replace(/</g, '<')
|
||||
.replace(/>/g, '>');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue