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

Don't try to use %w in testing package logging functions #1250

Merged
merged 1 commit into from
Jun 1, 2022

Conversation

nalind
Copy link
Member

@nalind nalind commented Jun 1, 2022

Go 1.18's testing package is adamant that it doesn't support the %w specifier for wrapping errors, which makes sense because it outputs text rather than producing an error object like fmt.Errorf() does. Change attempts to use %w to %v.

Go 1.18's testing package is adamant that it doesn't support the %w
specifier for wrapping errors, which makes sense because it outputs
text rather than producing an error object like fmt.Errorf() does.
Change attempts to use %w to %v.

Signed-off-by: Nalin Dahyabhai <[email protected]>
@nalind
Copy link
Member Author

nalind commented Jun 1, 2022

@rhatdan
Copy link
Member

rhatdan commented Jun 1, 2022

LGTM

@rhatdan rhatdan merged commit 34d25cc into containers:main Jun 1, 2022
@nalind nalind deleted the percentw branch June 1, 2022 17:13
@TomSweeneyRedHat
Copy link
Member

LGTM
fwiw

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