]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/middlewares/reqValidators/videos.js
Handle error for the video upload
[github/Chocobozzz/PeerTube.git] / server / middlewares / reqValidators / videos.js
index d444c9f0abd8b11dba3f308d2727dfc953595ead..10b6d39c6f9989a575be76ad7316b804773d1b74 100644 (file)
@@ -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