1
0
Fork 0

Add log in peertube watch script on error

This commit is contained in:
Chocobozzz 2020-04-14 09:09:11 +02:00
parent 624a022157
commit a388781916
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 6 additions and 1 deletions

View File

@ -43,5 +43,10 @@ function run (url: string, program: any) {
url.replace('videos/watch', 'download/torrents') +
`-${program.resolution}.torrent`
execSync(cmd + args)
try {
execSync(cmd + args)
} catch (err) {
console.error('Cannto exec command.', err)
process.exit(-1)
}
}