diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-07-07 18:26:12 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-07-07 18:26:12 +0200 |
commit | ad0997adfb9e1e3b1ff54338d7558cf7b18440ea (patch) | |
tree | 78ef53699d260e194bbcda7eccb645a14070679a /server/middlewares/validators/pods.ts | |
parent | 709756b8e183f67ef9bf8f7bc149af4736260350 (diff) | |
download | PeerTube-ad0997adfb9e1e3b1ff54338d7558cf7b18440ea.tar.gz PeerTube-ad0997adfb9e1e3b1ff54338d7558cf7b18440ea.tar.zst PeerTube-ad0997adfb9e1e3b1ff54338d7558cf7b18440ea.zip |
Fix error logging
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 | }) |