summaryrefslogtreecommitdiff
path: root/clone.go
diff options
context:
space:
mode:
Diffstat (limited to 'clone.go')
-rw-r--r--clone.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/clone.go b/clone.go
index 164e354..4c7cac9 100644
--- a/clone.go
+++ b/clone.go
@@ -76,6 +76,8 @@ func recursiveClone(check *gitpb.Repo) error {
var good int
var bad int
+ badmap := make(map[string]error)
+
if check == nil {
return errors.New("repo was nil")
}
@@ -111,6 +113,7 @@ func recursiveClone(check *gitpb.Repo) error {
log.Info("recursiveClone() could not download", depRepo.GoPath)
log.Info("err:", err)
bad += 1
+ badmap[depRepo.GoPath] = err
} else {
log.Info("downloaded", depRepo.GoPath)
good += 1
@@ -118,6 +121,9 @@ func recursiveClone(check *gitpb.Repo) error {
}
log.Info("got", good, "repos", "failed on", bad, "repos")
if bad != 0 {
+ for gopath, err := range badmap {
+ log.Info("clone() error", gopath, err)
+ }
return errors.New("clone failed on some repos")
}
return nil