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