Update categories.js

This commit is contained in:
acardinale
2015-02-18 15:27:14 +01:00
parent 8975a0962e
commit 6607dfc4c9

View File

@@ -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);