diff --git a/app.js b/app.js index 2380a13..3a50652 100644 --- a/app.js +++ b/app.js @@ -21,9 +21,9 @@ app.use(express.static(path.join(__dirname, 'public'))); app.use('/', indexRouter); app.use('/users', usersRouter); -// catch 404 and forward to error handler +// catch 500 and forward to error handler app.use(function(req, res, next) { - next(createError(404)); + next(createError(500)); }); // error handler