From 4caf6ad280ce8729db7acca235bba1080451835a 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 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hack/lib/dev-env.sh b/hack/lib/dev-env.sh index 0394732a3..e2b6043f5 100644 --- a/hack/lib/dev-env.sh +++ b/hack/lib/dev-env.sh @@ -31,13 +31,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}"