Closed PORTB closed 1 year ago
Hello!
The error isn't in your use of ConfigSpec, it's your toml file that is incorrect, which causes the ParsingException at load()
. A config cannot be loaded if it cannot be parsed.
Instead of TRUE
it should be true
in lowercase.
edit: to be clear, the goal of ConfigSpec is not to fix unparseable configurations, but to correct the values of a configuration.
Oh, I misunderstood the purpose of the configspec. Thanks for your response
Hello I'm trying to use ConfigSpec to correct any invalid values in a FileConfig for a project I'm making. Here is a simplified version of what I'm doing:
somefile.toml
However, it causes an exception when I try to load the file, so the configspec can't correct the file.
How do I achieve this?