Skip to content

Commit

Permalink
Revert "improving logging for subcommand failure (bazelbuild#3824)"
Browse files Browse the repository at this point in the history
This reverts commit 55ea579.
  • Loading branch information
linzhp authored and fmeum committed Mar 17, 2024
1 parent 219b7b6 commit aa6b6f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/tools/builders/env.go
Expand Up @@ -168,7 +168,7 @@ func runAndLogCommand(cmd *exec.Cmd, verbose bool) error {
cleanup := passLongArgsInResponseFiles(cmd)
defer cleanup()
if err := cmd.Run(); err != nil {
return fmt.Errorf("error running subcommand %s: %w", formatCommand(cmd), err)
return fmt.Errorf("error running subcommand %s: %w", cmd.Path, err)
}
return nil
}
Expand Down

0 comments on commit aa6b6f4

Please sign in to comment.