error handler tests

This commit is contained in:
Barış Soner Uşaklı
2017-05-10 21:02:36 -04:00
parent 73f31640d7
commit 608a7d120c
3 changed files with 141 additions and 4 deletions

View File

@@ -122,9 +122,9 @@ middleware.pageView = function (req, res, next) {
middleware.pluginHooks = function (req, res, next) {
async.each(plugins.loadedHooks['filter:router.page'] || [], function (hookObj, next) {
hookObj.method(req, res, next);
}, function () {
}, function (err) {
// If it got here, then none of the subscribed hooks did anything, or there were no hooks
next();
next(err);
});
};