From: Ian Lance Taylor Date: Sun, 20 Jan 2019 15:46:18 +0000 (-0800) Subject: cmd/cgo: print the right error if mangling detection gccgo fails X-Git-Tag: go1.12rc1~54 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=a15a01377226cfca48fb64f67fb535af1da4bf0e;p=gostls13.git cmd/cgo: print the right error if mangling detection gccgo fails Change-Id: I2324f6f51d2bf8a4ae1b139b3933bc78dfa75835 Reviewed-on: https://go-review.googlesource.com/c/158718 Run-TryBot: Ian Lance Taylor TryBot-Result: Gobot Gobot Reviewed-by: Cherry Zhang --- diff --git a/src/cmd/cgo/out.go b/src/cmd/cgo/out.go index 0985a7e72e..00e2f9769c 100644 --- a/src/cmd/cgo/out.go +++ b/src/cmd/cgo/out.go @@ -1255,7 +1255,7 @@ func determineGccgoManglingScheme() bool { cmd := exec.Command(gccgocmd, "-S", "-o", "-", gofilename) buf, cerr := cmd.CombinedOutput() if cerr != nil { - fatalf("%s", err) + fatalf("%s", cerr) } // New mangling: expect go.l..u00e4ufer.Run