Add log in peertube watch script on error
This commit is contained in:
parent
624a022157
commit
a388781916
1 changed files with 6 additions and 1 deletions
|
@ -43,5 +43,10 @@ function run (url: string, program: any) {
|
||||||
url.replace('videos/watch', 'download/torrents') +
|
url.replace('videos/watch', 'download/torrents') +
|
||||||
`-${program.resolution}.torrent`
|
`-${program.resolution}.torrent`
|
||||||
|
|
||||||
|
try {
|
||||||
execSync(cmd + args)
|
execSync(cmd + args)
|
||||||
|
} catch (err) {
|
||||||
|
console.error('Cannto exec command.', err)
|
||||||
|
process.exit(-1)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue