]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/dist: show reason for command failure
authorRuss Cox <rsc@golang.org>
Sun, 8 Mar 2015 17:33:39 +0000 (13:33 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 17 Mar 2015 00:30:50 +0000 (00:30 +0000)
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>
src/cmd/dist/util.go

index fd4d2a62dfcac54b4c78a0d949ea22ae425b7429..0bbdbad0e848cf919fa399aace4d7a0504be43c6 100644 (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()