From e13a082284bcc92aa4f585d4a9fe07aa2c3c7c11 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 11 Jan 2016 09:34:38 -0800 Subject: [PATCH] runtime: return full error for first test to be built Change-Id: I5a0206e8074f3a2790954c45a217922b7b3fe851 Reviewed-on: https://go-review.googlesource.com/18487 Reviewed-by: Brad Fitzpatrick --- src/runtime/crash_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/crash_test.go b/src/runtime/crash_test.go index 4756e1a099..b622eb4526 100644 --- a/src/runtime/crash_test.go +++ b/src/runtime/crash_test.go @@ -99,7 +99,7 @@ func buildTestProg(t *testing.T, binary string) (string, error) { exe = "" target.err = fmt.Errorf("building %s: %v\n%s", binary, err, out) testprog.target[binary] = target - return "", err + return "", target.err } target.exe = exe testprog.target[binary] = target -- 2.50.0