Skip to content

Commit

Permalink
fix: make yamlToDict give useful information instead of error in inva…
Browse files Browse the repository at this point in the history
…lid config, fixes #5385 (#5425) [skip ci]
  • Loading branch information
rfay committed Oct 24, 2023
1 parent 3e6911d commit b99551f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/util/yamltools.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ func YamlToDict(topm interface{}) (map[string]interface{}, error) {
case interface{}:
res[yk] = v
default:
return nil, fmt.Errorf("yamlToDict: type %T not handled (%v)", yk, yk)
Warning("Configuration has invalid type '%T' for '%s'", v, yk)
continue
}
if err != nil {
return nil, err
Expand Down

0 comments on commit b99551f

Please sign in to comment.