diff options
Diffstat (limited to 'server/middlewares/validators/pods.ts')
-rw-r--r-- | server/middlewares/validators/pods.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/middlewares/validators/pods.ts b/server/middlewares/validators/pods.ts index da7fc2bd6..022fd7f9a 100644 --- a/server/middlewares/validators/pods.ts +++ b/server/middlewares/validators/pods.ts | |||
@@ -29,7 +29,7 @@ function makeFriendsValidator (req: express.Request, res: express.Response, next | |||
29 | return next() | 29 | return next() |
30 | }) | 30 | }) |
31 | .catch(err => { | 31 | .catch(err => { |
32 | logger.error('Cannot know if we have friends.', { error: err }) | 32 | logger.error('Cannot know if we have friends.', err) |
33 | res.sendStatus(500) | 33 | res.sendStatus(500) |
34 | }) | 34 | }) |
35 | }) | 35 | }) |
@@ -52,7 +52,7 @@ function podsAddValidator (req: express.Request, res: express.Response, next: ex | |||
52 | return next() | 52 | return next() |
53 | }) | 53 | }) |
54 | .catch(err => { | 54 | .catch(err => { |
55 | logger.error('Cannot load pod by host.', { error: err }) | 55 | logger.error('Cannot load pod by host.', err) |
56 | res.sendStatus(500) | 56 | res.sendStatus(500) |
57 | }) | 57 | }) |
58 | }) | 58 | }) |