diff --git a/lib/application.js b/lib/application.js index 9cf68d8..878c7a5 100644 --- a/lib/application.js +++ b/lib/application.js @@ -163,7 +163,7 @@ app.createContext = function(req, res){ app.onerror = function(err){ assert(err instanceof Error, 'non-error thrown: ' + err); - if (404 == err.status) return; + if (404 == err.status || err.expose) return; if ('test' == this.env) return; var msg = err.stack || err.toString();