mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Add log in peertube watch script on error
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user