1
0
mirror of https://github.com/golang/go synced 2024-11-19 07:04:43 -07:00

cmd/dist: show reason for command failure

Change-Id: I9fb5c1c11a750766ae2d9532869d5ab26f1cf9cf
Reviewed-on: https://go-review.googlesource.com/7624
Reviewed-by: Rob Pike <r@golang.org>
Reviewed-by: Dave Cheney <dave@cheney.net>
This commit is contained in:
Russ Cox 2015-03-08 13:33:39 -04:00
parent 861546543a
commit 5fca39967d

View File

@ -110,7 +110,7 @@ func run(dir string, mode int, cmd ...string) string {
if mode&Background != 0 {
bgdied.Done()
}
fatal("FAILED: %v", strings.Join(cmd, " "))
fatal("FAILED: %v: %v", strings.Join(cmd, " "), err)
}
if mode&ShowOutput != 0 {
outputLock.Lock()