1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-11 18:32:50 +00:00

another test

This commit is contained in:
2015-08-31 20:27:08 -05:00
parent 51be1ec24b
commit d180dbfae9
3 changed files with 4 additions and 4 deletions

4
app.js
View File

@@ -49,7 +49,7 @@ app.use(function(req, res, next) {
// development error handler
// will print stacktrace
/*
if (app.get('env') === 'development') {
app.use(function(err, req, res, next) {
res.status(err.status || 500);
@@ -59,7 +59,7 @@ if (app.get('env') === 'development') {
});
});
}
*/
// production error handler
// no stacktraces leaked to user
app.use(function(err, req, res, next) {