|
|
|
@ -350,7 +350,8 @@ func coalesceTablesFullKey(printf printFn, dst, src map[string]any, prefix strin
|
|
|
|
printf("warning: cannot overwrite table with non table for %s (%v)", fullkey, val)
|
|
|
|
printf("warning: cannot overwrite table with non table for %s (%v)", fullkey, val)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else if istable(dv) && val != nil {
|
|
|
|
} else if istable(dv) && val != nil {
|
|
|
|
// Only warn if the value is a non‑empty map, otherwise skip silently
|
|
|
|
// Suppress warning when user supplies an empty map (nil-like);
|
|
|
|
|
|
|
|
// still warn for non-map values and non-empty maps.
|
|
|
|
if m, ok := val.(map[string]any); !ok || len(m) > 0 {
|
|
|
|
if m, ok := val.(map[string]any); !ok || len(m) > 0 {
|
|
|
|
printf("warning: destination for %s is a table. Ignoring non-table value (%v)", fullkey, val)
|
|
|
|
printf("warning: destination for %s is a table. Ignoring non-table value (%v)", fullkey, val)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|