mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 07:06:58 +08:00
keyval: log which key could not be found
This commit is contained in:

committed by
Alessandro Ros

parent
805d578b6c
commit
be5df0f7f7
@@ -41,7 +41,7 @@ func keyValParse(str string, separator byte) (map[string]string, error) {
|
|||||||
for len(str) > 0 {
|
for len(str) > 0 {
|
||||||
i := strings.IndexByte(str, '=')
|
i := strings.IndexByte(str, '=')
|
||||||
if i < 0 {
|
if i < 0 {
|
||||||
return nil, fmt.Errorf("unable to find key")
|
return nil, fmt.Errorf("unable to find key '%v'", str)
|
||||||
}
|
}
|
||||||
var k string
|
var k string
|
||||||
k, str = str[:i], str[i+1:]
|
k, str = str[:i], str[i+1:]
|
||||||
|
Reference in New Issue
Block a user