diff options
author | Chocobozzz <me@florianbigard.com> | 2018-11-16 10:05:25 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-11-16 10:05:25 +0100 |
commit | 7373507fa830b0f18cb4cd95dfd923b1600e501d (patch) | |
tree | 112fc5b4bc0cabd599a39452962cefb9733f97ec /server/middlewares | |
parent | fe05c3acbd48c72ac7e503bebde91830121a0bf1 (diff) | |
download | PeerTube-7373507fa830b0f18cb4cd95dfd923b1600e501d.tar.gz PeerTube-7373507fa830b0f18cb4cd95dfd923b1600e501d.tar.zst PeerTube-7373507fa830b0f18cb4cd95dfd923b1600e501d.zip |
Improve video upload error handling
Diffstat (limited to 'server/middlewares')
-rw-r--r-- | server/middlewares/validators/videos/videos.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/middlewares/validators/videos/videos.ts b/server/middlewares/validators/videos/videos.ts index 656d161d8..bf21bca8c 100644 --- a/server/middlewares/validators/videos/videos.ts +++ b/server/middlewares/validators/videos/videos.ts | |||
@@ -393,6 +393,8 @@ export { | |||
393 | function areErrorsInScheduleUpdate (req: express.Request, res: express.Response) { | 393 | function areErrorsInScheduleUpdate (req: express.Request, res: express.Response) { |
394 | if (req.body.scheduleUpdate) { | 394 | if (req.body.scheduleUpdate) { |
395 | if (!req.body.scheduleUpdate.updateAt) { | 395 | if (!req.body.scheduleUpdate.updateAt) { |
396 | logger.warn('Invalid parameters: scheduleUpdate.updateAt is mandatory.') | ||
397 | |||
396 | res.status(400) | 398 | res.status(400) |
397 | .json({ error: 'Schedule update at is mandatory.' }) | 399 | .json({ error: 'Schedule update at is mandatory.' }) |
398 | 400 | ||