From 5cf52690ee4c18aaee3efcb66a1574cc7939205c Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Fri, 1 Jul 2022 02:41:09 +0200 Subject: [PATCH] Small cleanup --- scripts/ScriptUtils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/ScriptUtils.ts b/scripts/ScriptUtils.ts index 09e87cc617..651ad43515 100644 --- a/scripts/ScriptUtils.ts +++ b/scripts/ScriptUtils.ts @@ -111,9 +111,10 @@ export default class ScriptUtils { } const parsed = JSON.parse(contents); - return {parsed: parsed, path: path} + return {parsed, path} } catch (e) { console.error("Could not parse file ", "./assets/layers/" + path, "due to ", e) + throw e } }) }