remove if (!err) from app.onerror
we assert instanceof Error right below
This commit is contained in:
parent
f68716d8b4
commit
90c528c5e8
1 changed files with 0 additions and 1 deletions
|
@ -155,7 +155,6 @@ app.createContext = function(req, res){
|
|||
*/
|
||||
|
||||
app.onerror = function(err){
|
||||
if (!err) return;
|
||||
assert(err instanceof Error, 'non-error thrown: ' + err);
|
||||
|
||||
if (404 == err.status) return;
|
||||
|
|
Loading…
Reference in a new issue