Skip to content

Commit 0e7e4e3

Browse files
committed
Revert "improving logging for subcommand failure (bazel-contrib#3824)"
This reverts commit 55ea579.
1 parent d2ae515 commit 0e7e4e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/tools/builders/env.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ func runAndLogCommand(cmd *exec.Cmd, verbose bool) error {
196196
cleanup := passLongArgsInResponseFiles(cmd)
197197
defer cleanup()
198198
if err := cmd.Run(); err != nil {
199-
return fmt.Errorf("error running subcommand %s: %w", formatCommand(cmd), err)
199+
return fmt.Errorf("error running subcommand %s: %v", cmd.Path, err)
200200
}
201201
return nil
202202
}

0 commit comments

Comments
 (0)