Movecraft icon indicating copy to clipboard operation
Movecraft copied to clipboard

Craft type file loading should explain what's going wrong

Open oh-noey opened this issue 5 years ago • 1 comments

Is your feature request related to a problem? Please describe. Currently, when craft types are loaded from disk, if an error is found Movecraft just spits out the exception and continues attempting to load the next craft type.

Describe the solution you'd like If an error occurs during the loading of a craft type, it should continue processing that specific craft type to look for other errors, but fail to load in the end. These errors should be outputted to the console, with a message saying the line of the error, the cause of the error, and what the correct value should be. This also applies to missing required entries.

oh-noey avatar May 18 '19 13:05 oh-noey

While greatly improved, it would be best to display line numbers along side errors. This should be possible using the snakeyaml Yaml.compose method and walking its output tree.

oh-noey avatar Apr 14 '21 14:04 oh-noey