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 <thanh.ha@linuxfoundation.org>
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