Deviouslrd / json-generator

Easy-to-use generator to make the JSON files primarily for mods, but can also be used for resource packs and datapacks. Comes with extensive generation tools to maximize its usefulness.
3 stars 2 forks source link

[SUGGESTION] When the generator fails to generate, make it clear it didnt #52

Closed Deviouslrd closed 2 years ago

Deviouslrd commented 3 years ago

Description

Long title, but if it fails to generate something, utilize the error text box to say "An error occurred. See the console for details." or put beginning of the error into the text box.

Method of achieving this

Detect when it throws an error, maybe via try/catch system to get the error detected.

Deviouslrd commented 2 years ago

Should be working in https://github.com/Deviouslrd/json-generator/commit/06e19644ae6e3e76db7b948a84d3b6cc82dd1691 - puts the error into the error box Haven't run into a time when it failed to generate so for now this'll be closed