pelletier / go-toml

Go library for the TOML file format
https://github.com/pelletier/go-toml
Other
1.73k stars 211 forks source link

v2 tomll does not report position on error #744

Closed pelletier closed 2 years ago

pelletier commented 2 years ago

Describe the bug

tomll should report the position where an error occurred, but it does not. See https://github.com/pelletier/go-toml/issues/742#issuecomment-1076421776.

To Reproduce

echo 'qwe = 001' | tomll

Expected behavior

Should output contextualized error + position.

Versions

pelletier commented 2 years ago

Fixed by https://github.com/pelletier/go-toml/commit/88a8aecdd44284a14430971a09846ab1c656edae