From b2bba49bb0f0178d8f57c71f53871fcf76595417 Mon Sep 17 00:00:00 2001 From: Micah Hausler Date: Wed, 4 Sep 2024 15:36:08 -0700 Subject: [PATCH] test-debug --- hack/lib/dev-env.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/hack/lib/dev-env.sh b/hack/lib/dev-env.sh index 0394732a3..cf8862b67 100644 --- a/hack/lib/dev-env.sh +++ b/hack/lib/dev-env.sh @@ -17,6 +17,7 @@ set -o errexit set -o pipefail set -o nounset +set -x # Check that required binaries are installed command -v make >/dev/null 2>&1 || { echo >&2 "make is required but it's not installed. Aborting."; exit 1; } @@ -31,13 +32,18 @@ fi OUTPUT="${OUTPUT:-${REPO_ROOT}/_output}" +err_report() { + echo "Exited with error on line $1" +} +trap 'err_report $LINENO' ERR + # Parameters # Parameters required to be set by caller for dev environment creation only: # AUTHENTICATOR_IMAGE # ADMIN_ARN -# Parameters with sane defaults: +# Parameters with sane defaults: AUTHENTICATOR_BIN="${AUTHENTICATOR_BIN:-${OUTPUT}/bin/aws-iam-authenticator}" REGION="${REGION:-us-west-2}" APISERVER_URL="${APISERVER_URL:-https://127.0.0.1:6443}"