diff --git a/api/types.go b/api/types.go index 291522a3..2f5a9424 100644 --- a/api/types.go +++ b/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 }