Skip to content
Myr

Added onFailure hook

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

authored by visionmedia · committed by visionmedia · parent 4b368af · Browse files · 1 file+1 added−0 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+1 added−0 removed

  • other:+1 added−0 removed

1 file+1 added−0 removed

modified:lib/express.core.js+1 added
225 unmodified lines
226 * @api private227 */228229 fail : function(e) {230 this.hook('onFailure', e)231 if (e.constructor == Express.Halt) return232 this.header('Content-Type', 'text/plain')233 this.response.body = e.message ? e.name + ': ' + e.message : e.toString()234 this.response.status = 500
459 unmodified lines