Fix warning message for map overwrite scenario

Signed-off-by: Mihir Mohapatra <mihir.mohapatra77@gmail.com>
pull/32246/head
Mihir Mohapatra 3 weeks ago committed by GitHub
parent 932c0ad261
commit 5522dcdece
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -347,7 +347,7 @@ func coalesceTablesFullKey(printf printFn, dst, src map[string]any, prefix strin
if istable(dv) {
coalesceTablesFullKey(printf, dv.(map[string]any), val.(map[string]any), fullkey, merge)
} else {
printf("warning: cannot overwrite map with non-map for %s (%v)", fullkey, val)
printf("warning: cannot overwrite map onto non-map for %s (%v)", fullkey, val)
}
} else if istable(dv) && val != nil {
printf("warning: destination for %s is a map. Ignoring non-map value (%v)", fullkey, val)

Loading…
Cancel
Save