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}"