Browse Source
Fixed invalid option provided not displaying the invalid option name problem. (#6202)
mxyng/fix-memory
Chua Chee Seng
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
api/types.go
|
|
|
@ -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 |
|
|
|
} |
|
|
|
|
|
|
|
|