Fixed invalid option provided not displaying the invalid option name problem. (#6202)
This commit is contained in:
parent
a4fdd03c3b
commit
d4a7216c82
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue