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
This commit is contained in:
Yoshisato Yanagisawa 2019-02-13 10:47:32 +09:00
parent 8854a5a805
commit 02eaccafbd

View file

@ -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)
}
}