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 use subprocess output as a format specifier #1318

Merged
merged 1 commit into from
Sep 1, 2022

Conversation

nalind
Copy link
Member

@nalind nalind commented Aug 31, 2022

Don't pass the output of a subprocess to fmt.Errorf(), which will try to treat it as a format specifier. Just use errors.New() to create an error using the text verbatim.

Fixes #1316.

Don't pass the output of a subprocess to fmt.Errorf(), which will treat
it as a format specifier.  Just use errors.New() to create an error
using the text verbatim.

Signed-off-by: Nalin Dahyabhai <[email protected]>
Copy link
Collaborator

@mtrmac mtrmac left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

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

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

@rhatdan rhatdan merged commit a401d27 into containers:main Sep 1, 2022
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.

Command output logged incorrectly
6 participants