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:
parent
861546543a
commit
5fca39967d
2
src/cmd/dist/util.go
vendored
2
src/cmd/dist/util.go
vendored
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user