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

This commit is contained in:
Chua Chee Seng 2024-08-07 02:37:16 +08:00 committed by GitHub
parent a4fdd03c3b
commit d4a7216c82
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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