Skip to content
Snippets Groups Projects

Add errors.Ignore()

Merged Administrator requested to merge cc/filter-errors into main

Created by: camdencheek

This adds the new helper function Ignore to our errors package. This allows us to ignore errors based on a given predicate function in a way that takes into account aggregated errors in MultiError. It recursively unwraps to multierrors an filters out all child errors that match the predicate.

Test plan

Solid unit tests were added as part of this PR.

Merge request reports

Merged by avatar (Jul 8, 2025 8:21am UTC)

Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading