Skip to content

Commit 3fca6a0

Browse files
author
Bryan C. Mills
committed
cmd/gorename: log 'go build' output on failure
For golang/go#50043 Change-Id: I90d1e85c59d6f9c9ad30edf0180cb876c2564534 Reviewed-on: https://go-review.googlesource.com/c/tools/+/370254 Trust: Bryan Mills <[email protected]> Run-TryBot: Bryan Mills <[email protected]> Reviewed-by: Hyang-Ah Hana Kim <[email protected]> gopls-CI: kokoro <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
1 parent cadd57e commit 3fca6a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/gorename/gorename_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,8 +331,8 @@ func buildGorename(t *testing.T) (tmp, bin string, cleanup func()) {
331331
bin += ".exe"
332332
}
333333
cmd := exec.Command("go", "build", "-o", bin)
334-
if err := cmd.Run(); err != nil {
335-
t.Fatalf("Building gorename: %v", err)
334+
if out, err := cmd.CombinedOutput(); err != nil {
335+
t.Fatalf("Building gorename: %v\n%s", err, out)
336336
}
337337
return tmp, bin, func() { os.RemoveAll(tmp) }
338338
}

0 commit comments

Comments
 (0)