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 } }) }