aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares
diff options
context:
space:
mode:
Diffstat (limited to 'server/middlewares')
-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}