Skip to content
Myr

Removed custom exceptions

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

because they are lame

authored by visionmedia · committed by visionmedia · parent 693e374 · Browse files · 4 files+9 added−29 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+9 added−29 removed

  • tests:+2 added−1 removed
  • other:+7 added−28 removed

4 files+9 added−29 removed

modified:lib/express/core.js+1 added-4 removed
9 unmodified lines
10 events = require('events'),11 fs = require('fs')1213global.merge(require('sys'))14global.merge(require('express/exceptions'))14global.merge(require('express/event'))15global.merge(require('express/request'))16global.merge(require('express/plugin'))17global.merge(require('express/dsl'))
268 unmodified lines
286 * @api private287 */288 289 error: function (e, request, response) {291 if (e instanceof ExpressError)292 throw e290 if (!(request instanceof Request))291 request = new Request(request, response),295 request.trigger('request',null, function(error) {/*NOOP?*/ } )292 request.trigger('request')293 if (request.accepts('html') && set('show exceptions'))294 request.halt(500, require('express/pages/show-exceptions').render(request, e))295 else296 request.halt(500)
38 unmodified lines
deleted:lib/express/exceptions.js-14 removed
modified:lib/express/static.js+6 added-10 removed
modified:spec/spec.static.js+2 added-1 removed