feat: improved error messages

This commit is contained in:
Simon Cornet 2025-03-04 14:07:29 +01:00
commit 1c2be88daa
4 changed files with 11 additions and 11 deletions

View file

@ -76,7 +76,7 @@ func pullRepository(repoName string, repoDestination string) {
remoteCmd := exec.Command("git", "-C", repoDestination, "remote", "show")
remoteOutput, err := remoteCmd.CombinedOutput()
if err != nil {
return "", fmt.Errorf("finding remote: %v", err)
return "", fmt.Errorf("finding remote: %v\n", err)
}
remote := strings.Split(strings.TrimSpace(string(remoteOutput)), "\n")[0]