gravwell / gcfg

read INI-style configuration files into Go structs; supports user-defined types and subsections
https://gopkg.in/gcfg.v1
Other
0 stars 4 forks source link

adding some more context to errors when keys are bad #12

Closed kris-watts-gravwell closed 1 year ago

kris-watts-gravwell commented 1 year ago

Assuming you stuff in the key "Foobar" into a structure where it doesn't belong.

Instead of this error:

can't store data into section "Stream", subsection "stream1"

you get this error:

can't store data into key "Foobar" at section "Stream", subsection "stream1"

Closes issue https://github.com/gravwell/gcfg/issues/10