Skip to content
Myr

Started show exceptions support

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

authored by visionmedia · committed by visionmedia · parent 4ea0e85 · Browse files · 4 files+46 added−3 removed
This commit

State

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

Diff stats

4 files+46 added−3 removed

  • other:+46 added−3 removed

4 files+46 added−3 removed

modified:examples/app.js+4 added
modified:lib/express/core.js+7 added-2 removed
251 unmodified lines
252 header('content-type') == 'application/x-www-form-urlencoded' ?253 parseParams(request.body) :254 {}255 trigger('request')256 try {256 if (typeof (body = Express.router.route(request)) == 'string')257 halt(200, body)257 if (typeof (body = Express.router.route(request)) == 'string')258 halt(200, body)259 }260 catch (e) {261 halt(500, require('express/show-exceptions').render(e))262 }263 },264 265 /**266 * Respond immediately with optional _body_.
32 unmodified lines
modified:lib/express/plugins.js+1 added-1 removed
added:lib/express/show-exceptions.js+34 added