diff options
author | Rigel Kent <par@rigelk.eu> | 2018-03-26 13:13:01 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-03-26 13:13:01 +0200 |
commit | 48e35415c76522af72f18714419d0f19dae48bcf (patch) | |
tree | e1958ad27dee9cafd6410c8242b66ebbfb78fe59 /server/tools | |
parent | bf9ae5ce57c9e2117548ab5794c0c2a5096ba4ad (diff) | |
download | PeerTube-48e35415c76522af72f18714419d0f19dae48bcf.tar.gz PeerTube-48e35415c76522af72f18714419d0f19dae48bcf.tar.zst PeerTube-48e35415c76522af72f18714419d0f19dae48bcf.zip |
per missing field error in upload.js (fixes #414) (#416)
Diffstat (limited to 'server/tools')
-rw-r--r-- | server/tools/upload.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/server/tools/upload.ts b/server/tools/upload.ts index ce9e1b62e..94ea224b6 100644 --- a/server/tools/upload.ts +++ b/server/tools/upload.ts | |||
@@ -35,7 +35,11 @@ if ( | |||
35 | !program['videoName'] || | 35 | !program['videoName'] || |
36 | !program['file'] | 36 | !program['file'] |
37 | ) { | 37 | ) { |
38 | console.error('Url, username, password, name and input file are required.') | 38 | if (!program['url']) console.error('--url field is required.') |
39 | if (!program['username']) console.error('--username field is required.') | ||
40 | if (!program['password']) console.error('--password field is required.') | ||
41 | if (!program['videoName']) console.error('--video-name field is required.') | ||
42 | if (!program['file']) console.error('--file field is required.') | ||
39 | process.exit(-1) | 43 | process.exit(-1) |
40 | } | 44 | } |
41 | 45 | ||