aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares/reqValidators
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-06-04 20:37:38 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-06-04 20:37:38 +0200
commit1cdb5c0f582502eac4d851cecc015e81cf16316b (patch)
tree79d5b8de99e72c61d55585fa1e243d9a847dd107 /server/middlewares/reqValidators
parentfe3b20cdaf54125674afd3c3d0aa8e9411bb0722 (diff)
downloadPeerTube-1cdb5c0f582502eac4d851cecc015e81cf16316b.tar.gz
PeerTube-1cdb5c0f582502eac4d851cecc015e81cf16316b.tar.zst
PeerTube-1cdb5c0f582502eac4d851cecc015e81cf16316b.zip
Handle error for the video upload
Diffstat (limited to 'server/middlewares/reqValidators')
-rw-r--r--server/middlewares/reqValidators/videos.js2
1 files changed, 1 insertions, 1 deletions
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) {
30 } 30 }
31 31
32 if (duration > constants.MAXIMUM_VIDEO_DURATION) { 32 if (duration > constants.MAXIMUM_VIDEO_DURATION) {
33 return res.status(400).send('Duration of the video file is too big (' + constants.MAXIMUM_VIDEO_DURATION + ').') 33 return res.status(400).send('Duration of the video file is too big (max: ' + constants.MAXIMUM_VIDEO_DURATION + 's).')
34 } 34 }
35 35
36 videoFile.duration = duration 36 videoFile.duration = duration