CapsuleFarmerEvolved
CapsuleFarmerEvolved copied to clipboard
[Enchantment]: Handle invalid config files
What is your idea?
There are cases were users will enter a bad/corrupt yaml file. Instead of just throwing the python error, lets give them a pretty message and a link to the config tool
What should happen?
As described above
My request is not a question
- [X] I acknowledge that this issue is not a question or a bug request.
hey i was thinking, if something like this: https://pypi.org/project/yamllint/ could be implemented? so it can show more specific yaml errors
I assume since this is a linter the user has to run it and check the linting results, no?
i though it could be added in the main program to show exactly what is wrong with the yaml. i posted it as an idea just in case
If it can be executed before the config is being read, and can spit out the problems in the user face, I am all for it. But if the user has to manually run it or the program still crashes while trying to load the yaml file (because of errors) it will be mostly useless. Advanced users etc, can figure out that the yaml is problematic, if you know what I mean.