From 4897fed1774a06ca32b2ded9599b2d327317a571 Mon Sep 17 00:00:00 2001 From: Zhongpeng Lin Date: Sat, 16 Mar 2024 11:11:58 -0700 Subject: [PATCH] Revert "improving logging for subcommand failure (#3824)" This reverts commit 55ea579a70958d66f24a907433978b21edd36b29. --- go/tools/builders/env.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/tools/builders/env.go b/go/tools/builders/env.go index 519c1a6901..f4ab2a9409 100644 --- a/go/tools/builders/env.go +++ b/go/tools/builders/env.go @@ -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 }