aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorYoshisato Yanagisawa <yyanagisawa@google.com>2019-02-13 10:47:32 +0900
committerYoshisato Yanagisawa <yyanagisawa@google.com>2019-02-13 10:49:10 +0900
commit02eaccafbdd3b4865e0d46a8fd066e11361e6592 (patch)
treef8863c886023a55e152dd2075fc6223f49acc849 /ui
parent8854a5a8050ae76583b63226b4ca5967dc5e0972 (diff)
downloadbuild_soong-02eaccafbdd3b4865e0d46a8fd066e11361e6592.tar.gz
build_soong-02eaccafbdd3b4865e0d46a8fd066e11361e6592.tar.bz2
build_soong-02eaccafbdd3b4865e0d46a8fd066e11361e6592.zip
More verbose message on goma_ctl.py ensure_start failure.
For ease of investigating the issue with error reports, let me make the error message more verbose. Test: make goma_ctl.py raise Exception and run. Test: I confirmed verbose error message shown. Change-Id: I04f9a5ca4808746994c41ddce8a5b22a1975fcc2 Signed-off-by: Yoshisato Yanagisawa <yyanagisawa@google.com> Bug: 124218940
Diffstat (limited to 'ui')
-rw-r--r--ui/build/goma.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/build/goma.go b/ui/build/goma.go
index 015a7c77..ff0b40e6 100644
--- a/ui/build/goma.go
+++ b/ui/build/goma.go
@@ -73,7 +73,7 @@ func startGoma(ctx Context, config Config) {
cmd := Command(ctx, config, "goma_ctl.py ensure_start", gomaCtl, "ensure_start")
- if err := cmd.Run(); err != nil {
- ctx.Fatalf("goma_ctl.py ensure_start failed with: %v\n", err)
+ if output, err := cmd.CombinedOutput(); err != nil {
+ ctx.Fatalf("goma_ctl.py ensure_start failed with: %v\n%s\n", err, output)
}
}