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

Embed stderr from running command in error #65

Merged
merged 1 commit into from
Apr 18, 2023
Merged

Embed stderr from running command in error #65

merged 1 commit into from
Apr 18, 2023

Conversation

toshipp
Copy link
Contributor

@toshipp toshipp commented Apr 13, 2023

fio outputs some warnings to its stderr, but it is less useful. By embeding it in the error, the message will appear if the command fails.

@toshipp toshipp requested a review from a team as a code owner April 13, 2023 08:37
@toshipp toshipp requested review from pluser and peng225 April 13, 2023 08:37
fio outputs some warnings to its stderr, but it is less useful. By
embeding it in the error, the message will appear if the command fails.

Signed-off-by: Toshikuni Fukaya <toshikuni-fukaya@cybozu.co.jp>
Copy link
Contributor

@peng225 peng225 left a comment

Choose a reason for hiding this comment

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

By this mofification, you can now remove the following line, too.

c.Stderr = os.Stderr

@toshipp
Copy link
Contributor Author

toshipp commented Apr 14, 2023

@peng225 thanks, fixed.

@toshipp toshipp requested a review from peng225 April 14, 2023 00:59
@pluser pluser merged commit e15c2d7 into main Apr 18, 2023
@pluser pluser deleted the stderr branch April 18, 2023 05:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants