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

Return errors as wrapped errors instead of a custom struct #72

Open
Luberry opened this issue Aug 10, 2021 · 1 comment
Open

Return errors as wrapped errors instead of a custom struct #72

Luberry opened this issue Aug 10, 2021 · 1 comment

Comments

@Luberry
Copy link

Luberry commented Aug 10, 2021

This will allow us to use errors.Is to detect sub errors instead of string comparisons.

@Luberry Luberry changed the title Implement the Is function on errors to allow checking of wrapped errors. Return errors as wrapped errors instead of a custom struct Aug 10, 2021
@maxekman
Copy link
Member

maxekman commented Nov 1, 2021

Definitely something I want too. Thanks for bringing this up.

A PR is welcome if you have the time, not sure when I'll get to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants