mirror of https://github.com/Chocobozzz/PeerTube
Fix tests
parent
c7f36e4f48
commit
215304eaa0
|
@ -81,7 +81,7 @@ const videosAddValidator = getCommonVideoEditAttributes().concat([
|
|||
duration = await getDurationFromVideoFile(videoFile.path)
|
||||
} catch (err) {
|
||||
logger.error('Invalid input file in videosAddValidator.', { err })
|
||||
res.status(422)
|
||||
res.status(400)
|
||||
.json({ error: 'Invalid input file.' })
|
||||
|
||||
return cleanUpReqFiles(req)
|
||||
|
|
Loading…
Reference in New Issue