Skip to content
Myr

Enabling "helpful 404" and "show exceptions" for "development" env

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

authored by visionmedia · committed by visionmedia · parent 202c74d · Browse files · 2 files+5 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

2 files+5 added−2 removed

  • other:+5 added−2 removed

2 files+5 added−2 removed

modified:examples/app.js-2 removed
modified:lib/express/core.js+5 added
258 unmodified lines
259 set('views', function(){ return set('root') + '/views' })260 use(require('express/plugins/body-decoder').BodyDecoder)261})262263configure('development', function(){264 enable('helpful 404')265 enable('show exceptions')266})267268configure('test', function(){269 enable('throw exceptions')270})