aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorRigel Kent <par@rigelk.eu>2018-03-26 13:13:01 +0200
committerChocobozzz <me@florianbigard.com>2018-03-26 13:13:01 +0200
commit48e35415c76522af72f18714419d0f19dae48bcf (patch)
treee1958ad27dee9cafd6410c8242b66ebbfb78fe59 /server
parentbf9ae5ce57c9e2117548ab5794c0c2a5096ba4ad (diff)
downloadPeerTube-48e35415c76522af72f18714419d0f19dae48bcf.tar.gz
PeerTube-48e35415c76522af72f18714419d0f19dae48bcf.tar.zst
PeerTube-48e35415c76522af72f18714419d0f19dae48bcf.zip
per missing field error in upload.js (fixes #414) (#416)
Diffstat (limited to 'server')
-rw-r--r--server/tools/upload.ts6
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