Small cleanup
This commit is contained in:
parent
2780dc8b0b
commit
5cf52690ee
1 changed files with 2 additions and 1 deletions
|
@ -111,9 +111,10 @@ export default class ScriptUtils {
|
||||||
}
|
}
|
||||||
|
|
||||||
const parsed = JSON.parse(contents);
|
const parsed = JSON.parse(contents);
|
||||||
return {parsed: parsed, path: path}
|
return {parsed, path}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error("Could not parse file ", "./assets/layers/" + path, "due to ", e)
|
console.error("Could not parse file ", "./assets/layers/" + path, "due to ", e)
|
||||||
|
throw e
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue