From 9cddc4c83e20f0be6e4ad33a6559ceeec7a467cd Mon Sep 17 00:00:00 2001 From: jake Date: Tue, 11 Nov 2025 18:07:33 -0500 Subject: [PATCH] better erroring --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index ef923a7..48d75fc 100644 --- a/main.go +++ b/main.go @@ -117,8 +117,8 @@ func main() { } } - if strings.EqualFold(os.Getenv("FAIL_ON_FATAL"), "yes") { - os.Exit(fatalCount) + if strings.EqualFold(os.Getenv("FAIL_ON_FATAL"), "yes") && fatalCount > 0 { + os.Exit(1) } }