Skip to content
Myr

Re-throw ExpressErrors

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

authored by visionmedia · committed by visionmedia · parent bd4f150 · Browse files · 2 files+11 added−8 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+11 added−8 removed

  • other:+11 added−8 removed

2 files+11 added−8 removed

modified:lib/express/core.js+2 added
256 unmodified lines
257 if (typeof (body = Express.router.route(request)) == 'string')258 halt(200, body)259 }260 catch (e) {261 if (e instanceof ExpressError)262 throw e263 if (accepts('html'))264 halt(500, require('express/show-exceptions').render(e))265 else266 halt(500)
37 unmodified lines
modified:lib/express/show-exceptions.js+9 added-8 removed