]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tools/peertube-watch.ts
Fix theater mode
[github/Chocobozzz/PeerTube.git] / server / tools / peertube-watch.ts
index 5f7d1bb07d8edf5efa057baa6f402edd4456ebd9..b8e750a375b216ca8922842048f5ba1674cb7df9 100644 (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)
+  }
 }