From c51628e9110972bf80a1b78ba73a9123192c8504 Mon Sep 17 00:00:00 2001 From: EvanSnapp Date: Mon, 17 Oct 2016 15:23:26 -0500 Subject: [PATCH] moveing code to the right if statement --- main.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/main.go b/main.go index 7a39fe6..4aba091 100644 --- a/main.go +++ b/main.go @@ -430,12 +430,7 @@ func (c *catalog) commitCatalogRepo() { err := cmd.Run() if err != nil { fmt.Printf("ERROR: Failed to git commit %v\n", err) - fmt.Printf("This can happen because: ") - fmt.Printf("\tA) There is a concurrent build on this project that already built the catalog and upgraded the stack.") - fmt.Printf("\tB) There was network issue, and restarting the build should work") - fmt.Printf("\tC) The Github user may not have write access to the catalog repo") - fmt.Printf("\tD) If none of those apply, then you may have found a bug in this plugin and should file an issue with us here at leankit") - os.Exit(0) + os.Exit(1) } } @@ -445,7 +440,12 @@ func (c *catalog) pushCatalogRepo() { // Not showing output, bleeds the API key if err != nil { fmt.Printf("ERROR: Failed to git push %v\n", err) - os.Exit(1) + fmt.Printf("This can happen because: ") + fmt.Printf("\tA) There is a concurrent build on this project that already built the catalog and upgraded the stack.") + fmt.Printf("\tB) There was network issue, and restarting the build should work") + fmt.Printf("\tC) The Github user may not have write access to the catalog repo") + fmt.Printf("\tD) If none of those apply, then you may have found a bug in this plugin and should file an issue with us here at leankit") + os.Exit(0) } }