Movecraft
Movecraft copied to clipboard
Craft type file loading should explain what's going wrong
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.
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.