chore: capture invalid key/val
This commit is contained in:
parent
090e9380a5
commit
8872e54b67
1 changed files with 5 additions and 0 deletions
|
|
@ -120,6 +120,11 @@ func kv(p util.Param) string {
|
|||
panic(err)
|
||||
}
|
||||
|
||||
if p.Key == "" && val == "" {
|
||||
log.ERROR.Printf("invalid key/val for %+v, please report to https://github.com/evcc-io/evcc/issues/6439", p)
|
||||
return "{\"foo\":\"bar\"}"
|
||||
}
|
||||
|
||||
var msg strings.Builder
|
||||
msg.WriteString("\"")
|
||||
if p.Loadpoint != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue