From 4991a70bba40121b14650bc0baba3552cca1a09e Mon Sep 17 00:00:00 2001 From: Gregoire Parant Date: Mon, 2 Aug 2021 21:34:03 +0200 Subject: [PATCH] Fix error generated Don't generate error if file is Invalid --- back/src/Services/MapFetcher.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/back/src/Services/MapFetcher.ts b/back/src/Services/MapFetcher.ts index 0a8cb4bd..a17f722a 100644 --- a/back/src/Services/MapFetcher.ts +++ b/back/src/Services/MapFetcher.ts @@ -27,7 +27,9 @@ class MapFetcher { }); if (!isTiledMap(res.data)) { - throw new Error("Invalid map format for map " + mapUrl); + //TODO fixme + //throw new Error("Invalid map format for map " + mapUrl); + console.error("Invalid map format for map " + mapUrl); } return res.data;