mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-12 02:42:48 +00:00
fixed few things
This commit is contained in:
3
app.js
3
app.js
@@ -49,6 +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);
|
||||
@@ -58,7 +59,7 @@ if (app.get('env') === 'development') {
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
*/
|
||||
// production error handler
|
||||
// no stacktraces leaked to user
|
||||
app.use(function(err, req, res, next) {
|
||||
|
||||
Reference in New Issue
Block a user