added err to next

v1.18.x
barisusakli 11 years ago
parent 9125292b0e
commit beb7313138

@ -151,7 +151,7 @@ middleware.buildHeader = function(req, res, next) {
function(next) { function(next) {
controllers.api.getConfig(req, res, function(err, config) { controllers.api.getConfig(req, res, function(err, config) {
res.locals.config = config; res.locals.config = config;
next(); next(err);
}); });
}, },
function(next) { function(next) {
@ -163,9 +163,7 @@ middleware.buildHeader = function(req, res, next) {
}); });
}); });
} }
], function(err) { ], next);
next(err);
});
}; };
middleware.renderHeader = function(req, res, callback) { middleware.renderHeader = function(req, res, callback) {

Loading…
Cancel
Save