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