Skip to content
Myr

Revert "only register error handlers once"

Before adoption: this commit came in with the history the project adopted, so no landing records it.

This reverts commit 45590415a6668ec5fc3e792b482f06b297b1a388.

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 4559041 · Browse files · 1 file+0 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+0 added−2 removed

  • other:+0 added−2 removed

1 file+0 added−2 removed

modified:lib/express/server.js-2 removed
110 unmodified lines
111 * @api public112 */113114Server.prototype.registerErrorHandlers = function(){115 if (this.registeredErrorHandlers) return this;116 this.registeredErrorHandlers = true;115 this.errorHandlers.forEach(function(fn){116 this.use(function(err, req, res, next){117 fn.apply(this, arguments);118 });
247 unmodified lines