X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftools%2Fpeertube-watch.ts;h=b8e750a375b216ca8922842048f5ba1674cb7df9;hb=99fa5c5badd4f4d35a1d55c80b0102ee1c4e71cd;hp=5f7d1bb07d8edf5efa057baa6f402edd4456ebd9;hpb=7cd1b12c19d0589d1d692ed0571ca0800f028aea;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tools/peertube-watch.ts b/server/tools/peertube-watch.ts index 5f7d1bb07..b8e750a37 100644 --- a/server/tools/peertube-watch.ts +++ b/server/tools/peertube-watch.ts @@ -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) + } }