pelletier / go-toml

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

tools: display error context when it exists #749

Closed pelletier closed 2 years ago

pelletier commented 2 years ago

For example when failing to decode toml, display the context around the error and the location of the problem.

Fixes https://github.com/pelletier/go-toml/issues/744