From: Russ Cox Date: Sun, 8 Mar 2015 17:33:39 +0000 (-0400) Subject: cmd/dist: show reason for command failure X-Git-Tag: go1.5beta1~1556 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=5fca39967de70e78e0a1a4060d2e8feee77393d1;p=gostls13.git cmd/dist: show reason for command failure Change-Id: I9fb5c1c11a750766ae2d9532869d5ab26f1cf9cf Reviewed-on: https://go-review.googlesource.com/7624 Reviewed-by: Rob Pike Reviewed-by: Dave Cheney --- diff --git a/src/cmd/dist/util.go b/src/cmd/dist/util.go index fd4d2a62df..0bbdbad0e8 100644 --- a/src/cmd/dist/util.go +++ b/src/cmd/dist/util.go @@ -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()