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

Use errors.Is() and errors.As() to compare error values and types #300

Open
jhillyerd opened this issue Aug 23, 2023 · 0 comments
Open

Use errors.Is() and errors.As() to compare error values and types #300

jhillyerd opened this issue Aug 23, 2023 · 0 comments
Labels

Comments

@jhillyerd
Copy link
Owner

Using errors.Is() and errors.As() to compare error values and types (respectively), and to get inside wrapped errors, is the way to go. Not critical to do right this moment, but it'll make the code more resilient to future changes.

Originally posted by @dcormier in #299 (review)

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

No branches or pull requests

1 participant