AssetGenerator icon indicating copy to clipboard operation
AssetGenerator copied to clipboard

[FEATURE] Guard your json parse

Open Lewiscowles1986 opened this issue 5 years ago • 0 comments

Is your feature request related to a problem? Please describe.

It looks like you are not guarding your json parse method. Although it isn't terrible or /r/badcode, it's nicer to blow up with a meaningful, non-automated error message in these cases

Describe the solution you'd like

move JSON decoding out of the main file and into a utility class for it, which has it's own exception / error types

Describe alternatives you've considered

Just let the thing blow up and trust only devs can use this

Additional context

N/A

Lewiscowles1986 avatar Apr 20 '19 13:04 Lewiscowles1986