Closed pgundlach closed 1 year ago
I guess this is a duplicate of https://github.com/pelletier/go-toml/issues/413#issuecomment-841651368
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