diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-06-04 20:37:38 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-06-04 20:37:38 +0200 |
commit | 1cdb5c0f582502eac4d851cecc015e81cf16316b (patch) | |
tree | 79d5b8de99e72c61d55585fa1e243d9a847dd107 /server/middlewares/reqValidators | |
parent | fe3b20cdaf54125674afd3c3d0aa8e9411bb0722 (diff) | |
download | PeerTube-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.js | 2 |
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 |