aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tools
diff options
context:
space:
mode:
Diffstat (limited to 'server/tools')
-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