keyval: log which key could not be found

This commit is contained in:
Tristan Matthews
2021-04-19 16:29:24 -04:00
committed by Alessandro Ros
parent 805d578b6c
commit be5df0f7f7

View File

@@ -41,7 +41,7 @@ func keyValParse(str string, separator byte) (map[string]string, error) {
for len(str) > 0 {
i := strings.IndexByte(str, '=')
if i < 0 {
return nil, fmt.Errorf("unable to find key")
return nil, fmt.Errorf("unable to find key '%v'", str)
}
var k string
k, str = str[:i], str[i+1:]