better erroring

This commit is contained in:
2025-11-11 18:07:33 -05:00
parent f88893748a
commit 9cddc4c83e

View File

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