1
0
mirror of https://github.com/golang/go synced 2024-11-23 15:20:03 -07:00

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 <cbro@golang.org>
This commit is contained in:
Brad Fitzpatrick 2017-06-26 21:08:05 +00:00
parent 3c0f69a521
commit eab99a8d54

View File

@ -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 {