From 923d3caa3c669905f8965a8eccf219701039aee1 Mon Sep 17 00:00:00 2001 From: Yolanda Robla Date: Mon, 15 Jul 2019 15:46:46 +0200 Subject: [PATCH] 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 --- pkg/site/site.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) } -- 2.16.6