diff --git a/src/controllers/categories.js b/src/controllers/categories.js index 7ea49453f5..64c5d8c61a 100644 --- a/src/controllers/categories.js +++ b/src/controllers/categories.js @@ -267,8 +267,7 @@ categoriesController.get = function(req, res, next) { }); plugins.fireHook('filter:category.build', {req: req, res: res, templateData: data}, function(err, data) { - if (err && process.env === 'development') { - winston.warn(JSON.stringify(err)); + if (err) { return next(err); } res.render('category', data.templateData);