add nicer error formatting

This commit is contained in:
TJ Holowaychuk 2014-05-01 16:18:40 -07:00
parent c757034adb
commit 80ace2c0bb

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();
}; };
/** /**