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

wrap returned errors #850

Merged
merged 1 commit into from
Jul 21, 2021
Merged

wrap returned errors #850

merged 1 commit into from
Jul 21, 2021

Conversation

Luap99
Copy link
Contributor

@Luap99 Luap99 commented Jul 16, 2021

fmt.Errorf errors should wrap the original error with %w.
This allows the caller to check the errors with errors.Is().

see: https://blog.golang.org/go1.13-errors

fmt.Errorf errors should wrap the original error with %w.
This allows the caller to check the errors with `errors.Is()`.

see: https://blog.golang.org/go1.13-errors

Signed-off-by: Paul Holzinger <[email protected]>
@dcbw
Copy link
Member

dcbw commented Jul 21, 2021

/lgtm

@coveralls
Copy link

Coverage Status

Coverage remained the same at 72.183% when pulling ac221ab on Luap99:errors into 34a8a46 on containernetworking:master.

@mccv1r0
Copy link
Member

mccv1r0 commented Jul 21, 2021

/lgtm

@squeed squeed merged commit 63a3bca into containernetworking:master Jul 21, 2021
@Luap99 Luap99 deleted the errors branch July 21, 2021 16:04
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.

5 participants