visionmedia/express-trace — Issue #4: It's fail when I add errorHandler middleware
Author: zzdhidden
Created: 2011-10-09 01:55:28+00:00
State: open

express@2.4.6

Add errorHandler to examples/basic.js

app.use(express.errorHandler({ dumpExceptions: true, showStack: true }));

GET /
middleware / anonymous 1ms
middleware / favicon 0ms
middleware / bodyParser 0ms
middleware / methodOverride 0ms
middleware / cookieParser 0ms
middleware / session 1ms
middleware / static 0ms
middleware / errorHandler undefined
TypeError: Cannot read property 'accept' of undefined
at errorHandler (/Users/hidden/project/notihub/m.notihub.com/node_modules/express/node_modules/connect/lib/middleware/errorHandler.js:59:31)
at Object.handle (/Users/hidden/project/notihub/m.notihub.com/express-trace/lib/express-trace.js:106:9)
at next (/Users/hidden/project/notihub/m.notihub.com/node_modules/express/node_modules/connect/lib/http.js:201:15)
at /Users/hidden/project/notihub/m.notihub.com/express-trace/lib/express-trace.js:109:11
at /Users/hidden/project/notihub/m.notihub.com/node_modules/express/node_modules/connect/lib/middleware/static.js:148:11