From 722c3e348ccee93c032605affb9c57e904c63096 Mon Sep 17 00:00:00 2001 From: Zihong Zheng Date: Thu, 13 Jul 2017 14:56:16 -0700 Subject: [PATCH] Log error when fail to execute command in with-retry() --- cluster/gke/util.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cluster/gke/util.sh b/cluster/gke/util.sh index df140bb0615..e3b8f03f259 100755 --- a/cluster/gke/util.sh +++ b/cluster/gke/util.sh @@ -40,6 +40,8 @@ function with-retry() { sleep 3 done + echo "Failed to execute '${cmd[@]}' for $retry_limit times." >&2 + return ${rc} }