From 1cdb5c0f582502eac4d851cecc015e81cf16316b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Sat, 4 Jun 2016 20:37:38 +0200 Subject: Handle error for the video upload --- server/middlewares/reqValidators/videos.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/middlewares/reqValidators') diff --git a/server/middlewares/reqValidators/videos.js b/server/middlewares/reqValidators/videos.js index d444c9f0a..10b6d39c6 100644 --- a/server/middlewares/reqValidators/videos.js +++ b/server/middlewares/reqValidators/videos.js @@ -30,7 +30,7 @@ function videosAdd (req, res, next) { } if (duration > constants.MAXIMUM_VIDEO_DURATION) { - return res.status(400).send('Duration of the video file is too big (' + constants.MAXIMUM_VIDEO_DURATION + ').') + return res.status(400).send('Duration of the video file is too big (max: ' + constants.MAXIMUM_VIDEO_DURATION + 's).') } videoFile.duration = duration -- cgit v1.2.3