From bf7043874cc37f46a78866f6cec6b56fc2f52178 Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Thu, 11 Apr 2024 10:15:32 +0100 Subject: [PATCH] Don't wrap error from filter field validation --- audit/entry_filter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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