Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: use errors.Join to wrap multiple errors #1322

Merged
merged 1 commit into from
Dec 24, 2024

Conversation

reugn
Copy link
Contributor

@reugn reugn commented Dec 18, 2024

Motivation

Use the standard errors.Join function to wrap errors.

Modifications

  • Use errors.Join to wrap multiple errors
  • Remove the github.com/hashicorp/go-multierror dependency

Verifying this change

  • Make sure that the change passes the CI checks.

This change is already covered by existing tests.

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): (yes / no)
  • The public API: (yes / no)
  • The schema: (yes / no / don't know)
  • The default values of configurations: (yes / no)
  • The wire protocol: (yes / no)

Documentation

  • Does this pull request introduce a new feature? (yes / no)

@nodece nodece added this to the v0.15.0 milestone Dec 24, 2024
@nodece nodece merged commit ffba2a8 into apache:master Dec 24, 2024
7 checks passed
@reugn reugn deleted the errors-join branch December 24, 2024 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants