From 48e35415c76522af72f18714419d0f19dae48bcf Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Mon, 26 Mar 2018 13:13:01 +0200 Subject: per missing field error in upload.js (fixes #414) (#416) --- server/tools/upload.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 ( !program['videoName'] || !program['file'] ) { - console.error('Url, username, password, name and input file are required.') + if (!program['url']) console.error('--url field is required.') + if (!program['username']) console.error('--username field is required.') + if (!program['password']) console.error('--password field is required.') + if (!program['videoName']) console.error('--video-name field is required.') + if (!program['file']) console.error('--file field is required.') process.exit(-1) } -- cgit v1.2.3