Merge pull request #25223 from duglin/runErrMsg

Automatic merge from submit-queue

Add a better error message to run.sh

I ran build/run.sh w/o any args (by mistake) and it just said
   `Invalid input.`
after several other steps. I had no idea whether I was doing something
wrong or if my env was busted. Clearly, I just forget to include the
command that run.sh was to invoke in the Docker container.  But it took
me time to go track down where this error came from and why. So to help
others I just tweaked the error message to be:
   `Invalid input - please specify a command to run.`

Very minor thing,I know, but if it helps others...

Signed-off-by: Doug Davis <dug@us.ibm.com>
This commit is contained in:
k8s-merge-robot 2016-05-05 16:52:13 -07:00
commit a3cbdcaa5b

View File

@ -558,7 +558,7 @@ function kube::build::ensure_data_container() {
# already been built. This will sync out all output data from the build.
function kube::build::run_build_command() {
kube::log::status "Running build command...."
[[ $# != 0 ]] || { echo "Invalid input." >&2; return 4; }
[[ $# != 0 ]] || { echo "Invalid input - please specify a command to run." >&2; return 4; }
kube::build::ensure_data_container
kube::build::prepare_output