mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
error handler tests
This commit is contained in:
@@ -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);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user