From eab99a8d548f8ba864647ab171a44f0a5376a6b3 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Mon, 26 Jun 2017 21:08:05 +0000 Subject: [PATCH] cmd/go: add more info in t.Fatal message Updates #20284 Change-Id: I4d55d6adec4e8efb54285ca27bb4fa39c76582c3 Reviewed-on: https://go-review.googlesource.com/46719 Reviewed-by: Chris Broadfoot --- src/cmd/go/go_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/go/go_test.go b/src/cmd/go/go_test.go index 60c0c6f3697..d0475963692 100644 --- a/src/cmd/go/go_test.go +++ b/src/cmd/go/go_test.go @@ -4044,7 +4044,7 @@ func TestExecutableGOROOT(t *testing.T) { cmd.Env = env out, err := cmd.CombinedOutput() if err != nil { - t.Fatal(err) + t.Fatalf("%s env GOROOT: %v, %s", exe, err, out) } goroot, err := filepath.EvalSymlinks(strings.TrimSpace(string(out))) if err != nil {