Permalink
Browse files

Revert "only register error handlers once"

This reverts commit 4559041.
  • Loading branch information...
1 parent 4559041 commit 252f3306584fe015e57b8264f56b39773db2a922 @tj tj committed Oct 30, 2010
Showing with 0 additions and 2 deletions.
  1. +0 −2 lib/express/server.js
View
@@ -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);

0 comments on commit 252f330

Please sign in to comment.