Skip to content

Commit

Permalink
Return 500 HTTP code
Browse files Browse the repository at this point in the history
  • Loading branch information
wdavidw authored and robrighter committed Sep 13, 2010
1 parent e3c25ba commit dc228ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server.js
Expand Up @@ -37,7 +37,9 @@ server.error(function(err, req, res, next){
,author: ''
,analyticssiteid: 'XXXXXXX'
,error: err
} });
} },function(err,str){
res.send(str,{},500);
});
}
});
server.listen( port);
Expand Down

0 comments on commit dc228ed

Please sign in to comment.