diff options
Diffstat (limited to 'middlewares')
-rw-r--r-- | middlewares/reqValidators/pods.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/middlewares/reqValidators/pods.js b/middlewares/reqValidators/pods.js index 499cafd8f..4d649b486 100644 --- a/middlewares/reqValidators/pods.js +++ b/middlewares/reqValidators/pods.js | |||
@@ -12,7 +12,10 @@ | |||
12 | 12 | ||
13 | function makeFriends (req, res, next) { | 13 | function makeFriends (req, res, next) { |
14 | friends.hasFriends(function (err, has_friends) { | 14 | friends.hasFriends(function (err, has_friends) { |
15 | if (err) return next(err) | 15 | if (err) { |
16 | logger.error('Cannot know if we have friends.', { error: err }) | ||
17 | res.sendStatus(500) | ||
18 | } | ||
16 | 19 | ||
17 | if (has_friends === true) { | 20 | if (has_friends === true) { |
18 | // We need to quit our friends before make new ones | 21 | // We need to quit our friends before make new ones |