X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmiddlewares%2Fvalidators%2Fvideos.ts;h=ba8c2d834f3e21ddbe329265834a394967219310;hb=5c98d3bf078852043cbdd582c01e3dc4f4b5b79f;hp=576814fcb21c297b7c04404cbceeac401db3653e;hpb=8094a8980265a0a28e508dbd7cf7c7029e6d98b6;p=github%2FChocobozzz%2FPeerTube.git 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: next() }) .catch(err => { - logger.error('Error in getting duration from file.', err) - res.status(400).send('Cannot retrieve metadata of the file.') + logger.error('Error in video add validator', err) + res.sendStatus(500) }) }) }