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 committed Mar 16, 2024
1 parent 364c118 commit 4897fed
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 4897fed

Please sign in to comment.