Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve "unknown value appeared" error message #245

Open
vadz opened this issue May 22, 2024 · 0 comments
Open

Improve "unknown value appeared" error message #245

vadz opened this issue May 22, 2024 · 0 comments

Comments

@vadz
Copy link

vadz commented May 22, 2024

It's really nice that the library tries to make such an effort to produce useful and informative error messages, but bad format: unknown value appeared seems a bit underwhelming to me. I got it because I forgot quotes around a string value (e.g. I had just foo = bar instead of foo = "bar") and while I understand that there are many other possible cases in which we could fail to parse the file, it seems like this might be a relatively common mistake.

So I wonder if the error message could be changed to something like "unknown value type: expected quoted string, number, boolean etc" to be more helpful?

I could, of course, submit a trivial PR changing this if desired.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant