From 7a186a363175bf9d45ffc6ae15e7e410831d9268 Mon Sep 17 00:00:00 2001 From: Thanh Ha Date: Fri, 23 Jun 2017 11:08:43 -0400 Subject: [PATCH] Improve deploy error message The previous error message states that there are missing arguments however if the user provides more arguments than necessary it still fails with the same error. This patch attempts to make the error message more helpful to the user. Change-Id: I6e5967f098a98bb7b141635ce8358bc5de4a89e4 Signed-off-by: Thanh Ha --- shell/deploy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shell/deploy b/shell/deploy index 575c9d67..b25d4397 100755 --- a/shell/deploy +++ b/shell/deploy @@ -341,7 +341,8 @@ deploy_maven_file () { local file="$3" if [ "$#" -ne "3" ]; then - echo "Missing required arguments." + echo "ERROR: $# arguments passed. This function expects 3 required arguments." + deploy_maven_file_usage exit 1 fi -- 2.16.6