chore: capture invalid key/val

This commit is contained in:
andig 2023-02-25 17:16:33 +01:00
parent 090e9380a5
commit 8872e54b67

View file

@ -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 {