Skip to content

Commit

Permalink
chore: don't capture stderr in tool output (#847)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuildthecloud authored Sep 18, 2024
1 parent 780e07e commit f6dcb5f
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions pkg/engine/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,8 @@ func (e *Engine) runCommand(ctx Context, tool types.Tool, input string, toolCate
)

cmd.Stdout = io.MultiWriter(stdout, stdoutAndErr, progressOut)
if toolCategory == NoCategory || toolCategory == ContextToolCategory {
cmd.Stderr = io.MultiWriter(stdoutAndErr, progressOut)
result = stdoutAndErr
} else {
cmd.Stderr = io.MultiWriter(stdoutAndErr, progressOut, os.Stderr)
result = stdout
}
cmd.Stderr = io.MultiWriter(stdoutAndErr, progressOut, os.Stderr)
result = stdout

if err := cmd.Run(); err != nil {
if toolCategory == NoCategory {
Expand Down

0 comments on commit f6dcb5f

Please sign in to comment.