0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

Merge pull request #1108 from nason/signupErrorHandler

Add otherwise error callback to redirectToSignup promise. Fixes #1071
This commit is contained in:
Hannah Wolfe 2013-10-16 08:43:23 -07:00
commit 9b879f6edb

View file

@ -74,9 +74,10 @@ function redirectToSignup(req, res, next) {
if (users.length === 0) {
return res.redirect('/ghost/signup/');
}
next();
}).otherwise(function (err) {
return next(new Error(err));
});
next();
}
// While we're here, let's clean up on aisle 5