diff --git a/audit/entry_filter.go b/audit/entry_filter.go index ca08ee48a2a7..e8b251694c42 100644 --- a/audit/entry_filter.go +++ b/audit/entry_filter.go @@ -42,7 +42,7 @@ func NewEntryFilter(filter string) (*EntryFilter, error) { li := logical.LogInputBexpr{} _, err = eval.Evaluate(li) if err != nil { - return nil, fmt.Errorf("filter references an unsupported field: %s: %w: %w", filter, ErrExternalOptions, err) + return nil, fmt.Errorf("filter references an unsupported field: %s: %w", filter, ErrExternalOptions) } return &EntryFilter{evaluator: eval}, nil