diff --git a/lib/CheckDir.hs b/lib/CheckDir.hs index 5ad195fdb6be623e816d6007fa7c3aaff9a0ec2f..d6a7bd563ab7da8f0df402a4c0910a7f45a62b9e 100644 --- a/lib/CheckDir.hs +++ b/lib/CheckDir.hs @@ -65,7 +65,9 @@ newtype MissingAsset = MissingAsset MissingDep -- | given this config, should the result be considered to have failed? resultIsFatal :: LintConfig' -> DirResult -> Bool -resultIsFatal config res = maximumLintLevel res > configMaxLintLevel config +resultIsFatal config res = + not (null $ dirresultMissingAssets res) + || maximumLintLevel res > configMaxLintLevel config -- | maximum lint level that was observed anywhere in any map. -- note that it really does go through all lints, so don't