add nicer error formatting

This commit is contained in:
TJ Holowaychuk 2014-05-01 16:18:40 -07:00
parent c757034adb
commit 80ace2c0bb
1 changed files with 3 additions and 1 deletions

View File

@ -158,7 +158,9 @@ app.createContext = function(req, res){
app.onerror = function(err){ app.onerror = function(err){
if (!this.outputErrors) return; if (!this.outputErrors) return;
if (404 == err.status) return; if (404 == err.status) return;
console.error(err.stack); console.error();
console.error(err.stack.replace(/^/gm, ' '));
console.error();
}; };
/** /**