diff options
author | Chocobozzz <me@florianbigard.com> | 2018-02-12 12:48:58 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-02-12 12:48:58 +0100 |
commit | a87d467ad76505312fe63c597ee03a66126d0492 (patch) | |
tree | 9368de15c30c59f40fb45db7f7a60efeb4a5987b /server/tools/import-youtube.ts | |
parent | 3df456380a3d6c7ff39b0004a5390011739ebc8e (diff) | |
download | PeerTube-a87d467ad76505312fe63c597ee03a66126d0492.tar.gz PeerTube-a87d467ad76505312fe63c597ee03a66126d0492.tar.zst PeerTube-a87d467ad76505312fe63c597ee03a66126d0492.zip |
Fix upload from CLI script
Diffstat (limited to 'server/tools/import-youtube.ts')
-rw-r--r-- | server/tools/import-youtube.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/tools/import-youtube.ts b/server/tools/import-youtube.ts index d57798d5b..96bce29b5 100644 --- a/server/tools/import-youtube.ts +++ b/server/tools/import-youtube.ts | |||
@@ -20,7 +20,8 @@ if ( | |||
20 | !program['password'] || | 20 | !program['password'] || |
21 | !program['youtubeUrl'] | 21 | !program['youtubeUrl'] |
22 | ) { | 22 | ) { |
23 | throw new Error('All arguments are required.') | 23 | console.error('All arguments are required.') |
24 | process.exit(-1) | ||
24 | } | 25 | } |
25 | 26 | ||
26 | run().catch(err => console.error(err)) | 27 | run().catch(err => console.error(err)) |