Skip to content
Myr

express(1) errorHandler() only in development

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

no longer acts as production error handling, just implement that with custom middleware

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 006a6c7 · Browse files · 1 file+0 added−4 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−4 removed

  • other:+0 added−4 removed

1 file+0 added−4 removed

modified:bin/express-4 removed
192 unmodified lines
193 , ' app.use(express.static(__dirname + \'/public\'));'194 , '});'195 , ''196 , 'app.configure(\'development\', function(){'197 , ' app.use(express.errorHandler({ dumpExceptions: true, showStack: true })); '198 , '});'199 , ''200 , 'app.configure(\'production\', function(){'197 , ' app.use(express.errorHandler()); '198 , '});'199 , ''200 , 'app.get(\'/\', routes.index);'
163 unmodified lines