change app.onerror to ignore 404s
so you can easily unwind the stack for 404s
This commit is contained in:
parent
d7403552b9
commit
7a26886040
1 changed files with 3 additions and 1 deletions
|
@ -145,7 +145,9 @@ app.callback = function(){
|
|||
*/
|
||||
|
||||
app.onerror = function(err){
|
||||
if (this.outputErrors) console.error(err.stack);
|
||||
if (!this.outputErrors) return;
|
||||
if (404 == err.status) return;
|
||||
console.error(err.stack);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue