1
0
Fork 0

Display ffmpeg output errors

This commit is contained in:
Chocobozzz 2018-03-20 08:21:30 +01:00
parent 749cedcc60
commit 747b29900d
No known key found for this signature in database
GPG key ID: 583A612D890159BE

View file

@ -102,9 +102,13 @@ function transcode (options: TranscodeOptions) {
command = command.size(size) command = command.size(size)
} }
command.on('error', rej) command
.on('end', res) .on('error', (err, stdout, stderr) => {
.run() logger.error('Error in transcoding job.', { stdout, stderr })
return rej(err)
})
.on('end', res)
.run()
}) })
} }