Unverified Commit d4a7216c authored by Chua Chee Seng's avatar Chua Chee Seng Committed by GitHub
Browse files

Fixed invalid option provided not displaying the invalid option name problem. (#6202)

parent a4fdd03c
......@@ -504,7 +504,7 @@ func (opts *Options) FromMap(m map[string]interface{}) error {
for key, val := range m {
opt, ok := jsonOpts[key]
if !ok {
slog.Warn("invalid option provided", "option", opt.Name)
slog.Warn("invalid option provided", "option", key)
continue
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment