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

exec: fix: command output not shown when MultiWriter fails #498

Merged
merged 1 commit into from
Jan 11, 2024
Merged

Conversation

fho
Copy link
Collaborator

@fho fho commented Jan 11, 2024

When an error happened writing the output of the command to the MultiWriter, the last output is missing in the error message.

Reorder the MultiWriters, to first write to the stdoutPss, stderrPss writer that are the buffers for the error message.
That way the buffers contain the last output if a write operation to the following writers fail.

When an error happened writing the output of the command to the MultiWriter, the
last output is missing in the error message.

Reorder the MultiWriters, to first write to the stdoutPss, stderrPss writer that
are the buffers for the error message.
That way the buffers contain the last output if a write operation to the
following writers fail.
@fho fho merged commit 3da8edd into main Jan 11, 2024
4 checks passed
@fho fho deleted the exec_mw_fail branch January 11, 2024 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants