You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior
Since the library knows what kind of data I expect (Foo is a string), I'd expect an error message such as "could not parse string" or "quotes missing" or something like that.
Versions
go-toml: github.com/pelletier/go-toml/v2 v2.0.7
go: go1.20.1
operating system: macOS
The text was updated successfully, but these errors were encountered:
You're right, that's a duplicate of #413. I'll close this one, but will add a note on the other issue that we should look into using the type of the target to generate an error message.
Describe the bug
When I try to read
foo = bar
to a string, I get an error:I think this error message might lead to confusion.
To Reproduce
Expected behavior
Since the library knows what kind of data I expect (
Foo
is astring
), I'd expect an error message such as "could not parse string" or "quotes missing" or something like that.Versions
The text was updated successfully, but these errors were encountered: