From e51a3e078b5bced2873f36594912529de2387f35 Mon Sep 17 00:00:00 2001 From: Kalimah Apps Date: Thu, 23 Jun 2022 12:02:00 +1000 Subject: [PATCH] Show error message when file can not be loaded --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 9eb8b07..d476fc3 100644 --- a/index.js +++ b/index.js @@ -29,6 +29,7 @@ module.exports = function svgLoader (options = {}) { try { svg = await fs.readFile(path, 'utf-8') } catch (ex) { + console.log("File couldn't be loaded, fallback to default loader", id, ex) return // File couldn't be loaded, fallback to default loader }