Skip to content
Myr

Added "dump exceptions" setting, which is enabled by default

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

authored by visionmedia · committed by visionmedia · parent 7aa1834 · Browse files · 2 files+6 added−1 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+6 added−1 removed

  • other:+6 added−1 removed

2 files+6 added−1 removed

modified:lib/express/core.js+2 added
310 unmodified lines
311312configure('development', function(){313 enable('helpful 404')314 enable('show exceptions')315 enable('dump exceptions')316})317318configure('test', function(){319 enable('throw exceptions')320 disable('dump exceptions')321})322323configure('production', function(){324 enable('cache view contents')
3 unmodified lines
modified:lib/express/request.js+4 added-1 removed
10 unmodified lines
11 statusBodies = require('http').STATUS_CODES,12 queryString = require('querystring'),13 mime = require('express/mime'),14 url = require('url'),15 ext = require('ext')15 ext = require('ext'),16 sys = require('sys')1718// --- Helpers1920/**
380 unmodified lines
401 else402 this.respond(500)403 else404 this.respond(500)405 if (set('dump exceptions'))406 sys.puts(err.stack)407 if (set('throw exceptions'))408 throw err409 return this410 },
30 unmodified lines