Skip to content

Commit

Permalink
Don't wrap error from filter field validation (#26362)
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Wilson authored Apr 11, 2024
1 parent 3dc16db commit c96c1ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion audit/entry_filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c96c1ef

Please sign in to comment.