From 84057b11507a1434a9f189bca2fdb71df294c572 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Thu, 9 Feb 2023 22:43:00 +0000 Subject: Better message --- src/Game/Map.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Game') diff --git a/src/Game/Map.hs b/src/Game/Map.hs index b872f4c..a1c7e84 100644 --- a/src/Game/Map.hs +++ b/src/Game/Map.hs @@ -101,7 +101,7 @@ load filename tex = do blockedLayers = mapMaybe (filterTileLayer (\l -> l.name == "Blocked")) s.layers blockedLayer <- case blockedLayers of [l] -> pure l - xs -> error $ "1 \"Blocked\" layer expected, " ++ show (length xs) ++ " found" + xs -> error $ "A single \"Blocked\" layer expected, " ++ show (length xs) ++ " found" pure $ Map MapData -- cgit v1.2.3