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

Fix wrong error return value #1286

Merged
merged 1 commit into from Jul 13, 2022
Merged

Conversation

saschagrunert
Copy link
Member

We now pre-check the error before returning it in wrapped state.

Refers to 3455d12#r78367588

We now pre-check the error before returning it in wrapped state.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
saschagrunert referenced this pull request Jul 13, 2022
We now use the golang error wrapping format specifier `%w` instead of the
deprecated github.com/pkg/errors package.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
Copy link
Member

@vrothberg vrothberg left a comment

Choose a reason for hiding this comment

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

LGTM
@giuseppe PTAL

@vrothberg
Copy link
Member

I wonder why the linters didn't catch that

Copy link
Collaborator

@flouthoc flouthoc left a comment

Choose a reason for hiding this comment

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

LGTM

@rhatdan rhatdan merged commit 8e967aa into containers:main Jul 13, 2022
@saschagrunert saschagrunert deleted the error-wrap branch July 13, 2022 21:11
@saschagrunert saschagrunert restored the error-wrap branch July 14, 2022 08:35
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.

None yet

4 participants