change app.onerror to ignore 404s

so you can easily unwind the stack for 404s
This commit is contained in:
TJ Holowaychuk 2013-09-13 20:54:52 -07:00
parent d7403552b9
commit 7a26886040

View file

@ -145,7 +145,9 @@ app.callback = function(){
*/ */
app.onerror = function(err){ app.onerror = function(err){
if (this.outputErrors) console.error(err.stack); if (!this.outputErrors) return;
if (404 == err.status) return;
console.error(err.stack);
}; };
/** /**