From: Rigel Kent Date: Mon, 26 Mar 2018 11:13:01 +0000 (+0200) Subject: per missing field error in upload.js (fixes #414) (#416) X-Git-Tag: v1.0.0-beta.2~31 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=48e35415c76522af72f18714419d0f19dae48bcf;p=oweals%2Fpeertube.git per missing field error in upload.js (fixes #414) (#416) --- 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) }