aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares/validators
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-09-05 22:09:16 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-09-05 22:09:16 +0200
commit5c98d3bf078852043cbdd582c01e3dc4f4b5b79f (patch)
tree303d57ecc3c5d7b73cbbeb7187986a3dab87bcf0 /server/middlewares/validators
parent8094a8980265a0a28e508dbd7cf7c7029e6d98b6 (diff)
downloadPeerTube-5c98d3bf078852043cbdd582c01e3dc4f4b5b79f.tar.gz
PeerTube-5c98d3bf078852043cbdd582c01e3dc4f4b5b79f.tar.zst
PeerTube-5c98d3bf078852043cbdd582c01e3dc4f4b5b79f.zip
Begin tests for user quota
Diffstat (limited to 'server/middlewares/validators')
-rw-r--r--server/middlewares/validators/videos.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/middlewares/validators/videos.ts b/server/middlewares/validators/videos.ts
index 576814fcb..ba8c2d834 100644
--- a/server/middlewares/validators/videos.ts
+++ b/server/middlewares/validators/videos.ts
@@ -49,8 +49,8 @@ function videosAddValidator (req: express.Request, res: express.Response, next:
49 next() 49 next()
50 }) 50 })
51 .catch(err => { 51 .catch(err => {
52 logger.error('Error in getting duration from file.', err) 52 logger.error('Error in video add validator', err)
53 res.status(400).send('Cannot retrieve metadata of the file.') 53 res.sendStatus(500)
54 }) 54 })
55 }) 55 })
56} 56}