From: Ian Lance Taylor Date: Mon, 11 Jan 2016 17:34:38 +0000 (-0800) Subject: runtime: return full error for first test to be built X-Git-Tag: go1.6beta2~36 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=e13a082284bcc92aa4f585d4a9fe07aa2c3c7c11;p=gostls13.git 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 --- 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