Skip to content

Commit

Permalink
feat: added error message when pulling
Browse files Browse the repository at this point in the history
  • Loading branch information
DeluxeOwl committed Aug 7, 2022
1 parent b15a348 commit 4985690
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,10 @@ func cloneRepo(repoFullName, cloneUrl, dir, cloneArgs string) {
cloneCmd = exec.Command("git", splitArgs...)
}

_, err := cloneCmd.Output()
out, err := cloneCmd.Output()

if err != nil {
log.Printf("error when cloning %s: %v\n", repoFullName, err)
log.Printf("error when cloning %s: %v\n%s\n", repoFullName, err, string(out))
return
}

Expand Down Expand Up @@ -200,7 +200,7 @@ func pullRepo(repoFullName, cloneUrl, dir, pullArgs string) {
}

if err != nil {
log.Printf("error when pulling %s: %v\n", repoFullName, err)
log.Printf("error when pulling %s: %v\n%s\n", repoFullName, err, string(out))
return
}

Expand Down

0 comments on commit 4985690

Please sign in to comment.