diff options
-rw-r--r-- | config/express.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/express.js b/config/express.js index 2cbc4b1..a281123 100644 --- a/config/express.js +++ b/config/express.js @@ -18,7 +18,7 @@ module.exports = function (app, config, passport) { app.use(express.static(config.root + '/public')); - // don't use logger for test enc + // don't use logger for test env if (process.env.NODE_ENV !== 'test') app.use(express.logger('dev')); @@ -44,7 +44,7 @@ module.exports = function (app, config, passport) { app.use(app.router); app.use(function(err, req, res, next) { - if (~err.message.indexOf('not fount')) return next(); // treat like 404 + if (~err.message.indexOf('not found')) return next(); // treat like 404 console.error(err.stack); |