change app.onerror to ignore 404s

so you can easily unwind the stack for 404s
master
TJ Holowaychuk 2013-09-13 20:54:52 -07:00
parent d7403552b9
commit 7a26886040
1 changed files with 3 additions and 1 deletions

View File

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