Skip to content

Conversation

dimitarvdimitrov
Copy link
Contributor

What this PR does:

This allows to use multierror.MultiError with errors.Is().
MultiError will in turn call errors.Is() on every error value.

Which issue(s) this PR fixes:

Fixes #

Checklist

  • Tests updated
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

This allows to use `multierror.MultiError` with `errors.Is()`.
`MultiError` will in turn call `errors.Is()` on every error value.
@dimitarvdimitrov dimitarvdimitrov force-pushed the dimitar/implement-errors.is branch from ef99951 to 2cf3197 Compare January 19, 2023 16:23
@pstibrany
Copy link
Contributor

I would expect a test here.

@dimitarvdimitrov
Copy link
Contributor Author

I added some tests, PTAL @pstibrany

Copy link
Contributor

@pstibrany pstibrany left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, lgtm. (apart from typo in mesasge in tests)

@dimitarvdimitrov dimitarvdimitrov enabled auto-merge (squash) January 20, 2023 16:49
@dimitarvdimitrov dimitarvdimitrov merged commit 649501d into main Jan 20, 2023
@dimitarvdimitrov dimitarvdimitrov deleted the dimitar/implement-errors.is branch January 20, 2023 16:56
charleskorn pushed a commit that referenced this pull request Aug 3, 2023
httpgrpc/server: Update NewClient to not use WithBalancerName
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.

3 participants