From 5fca39967de70e78e0a1a4060d2e8feee77393d1 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Sun, 8 Mar 2015 13:33:39 -0400 Subject: [PATCH] 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 --- src/cmd/dist/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/dist/util.go b/src/cmd/dist/util.go index fd4d2a62dfc..0bbdbad0e84 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()