From: Yolanda Robla Date: Mon, 15 Jul 2019 13:46:46 +0000 (+0200) Subject: Show output of prepare manifests if failed X-Git-Tag: akraino_r2~49 X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=commitdiff_plain;h=923d3caa3c669905f8965a8eccf219701039aee1;p=kni%2Finstaller.git Show output of prepare manifests if failed Right now when apply manifests fail, just shows a cryptic error. Showing the whole output of the command now, to allow troubleshoot. Signed-off-by: Yolanda Robla Change-Id: I7141950e516250368be7dc6705d8071bec64b8f8 --- diff --git a/pkg/site/site.go b/pkg/site/site.go index 7e68a72..c07f509 100644 --- a/pkg/site/site.go +++ b/pkg/site/site.go @@ -265,9 +265,10 @@ func (s Site) PrepareManifests() { // now generate the manifests cmd = exec.Command(fmt.Sprintf("%s/openshift-install", binariesPath), "create", "manifests", fmt.Sprintf("--dir=%s", assetsPath), "--log-level", "debug") - err = cmd.Run() + out, err = cmd.Output() if err != nil { log.Fatal(fmt.Sprintf("Error creating manifests: %s", err)) + log.Println(out) os.Exit(1) }