Skip to content

Commit

Permalink
Revert "only register error handlers once"
Browse files Browse the repository at this point in the history
This reverts commit 4559041.
  • Loading branch information
tj committed Oct 30, 2010
1 parent 4559041 commit 252f330
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/express/server.js
Expand Up @@ -112,8 +112,6 @@ Server.prototype.listenFD = function(){
*/

Server.prototype.registerErrorHandlers = function(){
if (this.registeredErrorHandlers) return this;
this.registeredErrorHandlers = true;
this.errorHandlers.forEach(function(fn){
this.use(function(err, req, res, next){
fn.apply(this, arguments);
Expand Down

0 comments on commit 252f330

Please sign in to comment.