Skip to content

Commit

Permalink
moveing code to the right if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanSnapp committed Oct 17, 2016
1 parent 6539c62 commit c51628e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

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

Expand Down

0 comments on commit c51628e

Please sign in to comment.