aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares/validators/users.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-07-07 18:26:12 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-07-07 18:26:12 +0200
commitad0997adfb9e1e3b1ff54338d7558cf7b18440ea (patch)
tree78ef53699d260e194bbcda7eccb645a14070679a /server/middlewares/validators/users.ts
parent709756b8e183f67ef9bf8f7bc149af4736260350 (diff)
downloadPeerTube-ad0997adfb9e1e3b1ff54338d7558cf7b18440ea.tar.gz
PeerTube-ad0997adfb9e1e3b1ff54338d7558cf7b18440ea.tar.zst
PeerTube-ad0997adfb9e1e3b1ff54338d7558cf7b18440ea.zip
Fix error logging
Diffstat (limited to 'server/middlewares/validators/users.ts')
-rw-r--r--server/middlewares/validators/users.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/middlewares/validators/users.ts b/server/middlewares/validators/users.ts
index c06735047..9db4fff77 100644
--- a/server/middlewares/validators/users.ts
+++ b/server/middlewares/validators/users.ts
@@ -20,7 +20,7 @@ function usersAddValidator (req: express.Request, res: express.Response, next: e
20 next() 20 next()
21 }) 21 })
22 .catch(err => { 22 .catch(err => {
23 logger.error('Error in usersAdd request validator.', { error: err }) 23 logger.error('Error in usersAdd request validator.', err)
24 return res.sendStatus(500) 24 return res.sendStatus(500)
25 }) 25 })
26 }) 26 })
@@ -41,7 +41,7 @@ function usersRemoveValidator (req: express.Request, res: express.Response, next
41 next() 41 next()
42 }) 42 })
43 .catch(err => { 43 .catch(err => {
44 logger.error('Error in usersRemove request validator.', { error: err }) 44 logger.error('Error in usersRemove request validator.', err)
45 return res.sendStatus(500) 45 return res.sendStatus(500)
46 }) 46 })
47 }) 47 })
@@ -71,7 +71,7 @@ function usersVideoRatingValidator (req: express.Request, res: express.Response,
71 next() 71 next()
72 }) 72 })
73 .catch(err => { 73 .catch(err => {
74 logger.error('Error in user request validator.', { error: err }) 74 logger.error('Error in user request validator.', err)
75 return res.sendStatus(500) 75 return res.sendStatus(500)
76 }) 76 })
77 }) 77 })