Skip to content

Commit

Permalink
improving logging for subcommand failure (#3824)
Browse files Browse the repository at this point in the history
  • Loading branch information
linzhp authored Jan 9, 2024
1 parent e1c5285 commit 55ea579
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/tools/builders/env.go
Original file line number Diff line number Diff line change
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: %v", cmd.Path, err)
return fmt.Errorf("error running subcommand %s: %w", formatCommand(cmd), err)
}
return nil
}
Expand Down

0 comments on commit 55ea579

Please sign in to comment.