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

Input String Parsing: Misspelled section name string produces duplicate error messages #14

Open dmullis opened 4 months ago

dmullis commented 4 months ago

What are the steps to reproduce this issue?

  1. Modify gcfg/example_test.go 'profile "A"' to 'profileX "A"'
  2. Run self-test.

What happens?

    can't store data at section "profileX"
    can't store data into key "color" at section "profileX"
    can't store data at section "profileX"
    can't store data into key "color" at section "profileX"

What versions of software are you using?

Current v1, 9585638

dmullis commented 4 months ago

Also, neglecting to wrap in quotes a field value string containing spaces e.g. color = light yellow rather than quoted: color = "light yellow" produces no complaint, but rather silently discards "yellow".