summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorstuebinm2022-04-08 14:12:00 +0200
committerstuebinm2022-04-08 14:12:00 +0200
commitdb2bd423a00e582dd966d040df70d6994122b7ff (patch)
tree9123c53c11287c8b4cc6c4efda817f745995e68a /lib
parentbbc5b557838c750e66759602b6a48d23da780c24 (diff)
linter: don't fail on missing maps
turns out eitherDecodeFile' doesn't have the semantics I thought it did (who writes functions returning either that can still fail??)
Diffstat (limited to '')
-rw-r--r--lib/CheckMap.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CheckMap.hs b/lib/CheckMap.hs
index 258b6bb..73464a8 100644
--- a/lib/CheckMap.hs
+++ b/lib/CheckMap.hs
@@ -108,8 +108,7 @@ shrinkMapResult !res = res { mapresultAdjusted = () }
loadAndLintMap :: LintConfig' -> FilePath -> Int -> IO (Maybe (MapResult Full))
loadAndLintMap config path depth = loadTiledmap path <&> \case
Left err -> Just (MapResult mempty mempty mempty mempty Nothing mempty mempty mempty
- [ Hint Fatal . toText $
- path <> ": Fatal: " <> err
+ [ Hint Fatal . toText $ "Fatal: " <> err
])
Right waMap ->
Just (runLinter (takeFileName path == "main.json") config waMap depth)