aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares/validators
diff options
context:
space:
mode:
Diffstat (limited to 'server/middlewares/validators')
-rw-r--r--server/middlewares/validators/videos.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/middlewares/validators/videos.ts b/server/middlewares/validators/videos.ts
index 1dc8429c8..e3543ef93 100644
--- a/server/middlewares/validators/videos.ts
+++ b/server/middlewares/validators/videos.ts
@@ -86,7 +86,7 @@ const videosAddValidator = [
86 try { 86 try {
87 duration = await getDurationFromVideoFile(videoFile.path) 87 duration = await getDurationFromVideoFile(videoFile.path)
88 } catch (err) { 88 } catch (err) {
89 logger.error('Invalid input file in videosAddValidator.', err) 89 logger.error('Invalid input file in videosAddValidator.', { err })
90 res.status(400) 90 res.status(400)
91 .json({ error: 'Invalid input file.' }) 91 .json({ error: 'Invalid input file.' })
92 .end() 92 .end()