From 8607445fb4e3c208841ab4dd78d71d8f6c9923a5 Mon Sep 17 00:00:00 2001 From: Marco Ferrari Date: Tue, 4 Oct 2022 17:15:18 +0000 Subject: [PATCH] Throw a fatal error if tflint --init fails --- lib/functions/detectFiles.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/functions/detectFiles.sh b/lib/functions/detectFiles.sh index 6858bc5b..258b99a9 100755 --- a/lib/functions/detectFiles.sh +++ b/lib/functions/detectFiles.sh @@ -527,11 +527,10 @@ function RunAdditionalInstalls() { # Check the shell for errors # ############################## if [ "${ERROR_CODE}" -ne 0 ]; then - # Error - warn "ERROR! Failed to run:[tflint --init] at location:[${WORKSPACE_PATH}]" - warn "BUILD_CMD:[${BUILD_CMD}]" + fatal "ERROR! Failed to run:[tflint --init] at location:[${WORKSPACE_PATH}]. BUILD_CMD:[${BUILD_CMD}]" else info "Successfully ran:[tflint --init] in workspace:[${WORKSPACE_PATH}]" + debug "BUILD_CMD:[${BUILD_CMD}]" fi fi }