Commit eab99a8d authored by Brad Fitzpatrick's avatar Brad Fitzpatrick

cmd/go: add more info in t.Fatal message

Updates #20284

Change-Id: I4d55d6adec4e8efb54285ca27bb4fa39c76582c3
Reviewed-on: https://go-review.googlesource.com/46719Reviewed-by: default avatarChris Broadfoot <cbro@golang.org>
parent 3c0f69a5
...@@ -4044,7 +4044,7 @@ func TestExecutableGOROOT(t *testing.T) { ...@@ -4044,7 +4044,7 @@ func TestExecutableGOROOT(t *testing.T) {
cmd.Env = env cmd.Env = env
out, err := cmd.CombinedOutput() out, err := cmd.CombinedOutput()
if err != nil { if err != nil {
t.Fatal(err) t.Fatalf("%s env GOROOT: %v, %s", exe, err, out)
} }
goroot, err := filepath.EvalSymlinks(strings.TrimSpace(string(out))) goroot, err := filepath.EvalSymlinks(strings.TrimSpace(string(out)))
if err != nil { if err != nil {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment