diff options
-rw-r--r-- | server/tools/peertube-watch.ts | 7 |
1 files changed, 6 insertions, 1 deletions
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) { | |||
43 | url.replace('videos/watch', 'download/torrents') + | 43 | url.replace('videos/watch', 'download/torrents') + |
44 | `-${program.resolution}.torrent` | 44 | `-${program.resolution}.torrent` |
45 | 45 | ||
46 | execSync(cmd + args) | 46 | try { |
47 | execSync(cmd + args) | ||
48 | } catch (err) { | ||
49 | console.error('Cannto exec command.', err) | ||
50 | process.exit(-1) | ||
51 | } | ||
47 | } | 52 | } |