Misterio77 / flavours

🎨💧 An easy to use base16 scheme manager that integrates with any workflow.
MIT License
501 stars 29 forks source link

Better config parsing error text #41

Closed noahtallen closed 2 years ago

noahtallen commented 2 years ago

When I write incorrect syntax in my config.toml, I get the following error message:

$ flavours apply $theme
Error: Couldn't parse configuration file. Check if it's syntatically correct

Caused by:
    expected an equals, found a colon at line 7 column 8

I think it would be helpful to include the path to the config file. I wasn't sure if this was referring to the flavours config or my other config files :)

Misterio77 commented 2 years ago

Nice idea, this message could indeed be clearer

Misterio77 commented 2 years ago

Does this look good?

Error: Couldn't parse flavours configuration file ("/home/misterio/.config/flavours/config.toml"). Check if it's syntatically correct

Caused by:
    invalid TOML value, did you mean to use a quoted string? at line 1 column 9
noahtallen commented 2 years ago

yes!