add nicer error formatting
This commit is contained in:
parent
c757034adb
commit
80ace2c0bb
1 changed files with 3 additions and 1 deletions
|
@ -158,7 +158,9 @@ app.createContext = function(req, res){
|
|||
app.onerror = function(err){
|
||||
if (!this.outputErrors) return;
|
||||
if (404 == err.status) return;
|
||||
console.error(err.stack);
|
||||
console.error();
|
||||
console.error(err.stack.replace(/^/gm, ' '));
|
||||
console.error();
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue