Jelajahi Sumber

hosts: dropped error (#417)

Lars Lehtonen 5 tahun lalu
induk
melakukan
6129b1a15d
1 mengubah file dengan 4 tambahan dan 0 penghapusan
  1. 4 0
      hosts/gitlab.go

+ 4 - 0
hosts/gitlab.go

@@ -93,6 +93,10 @@ func (g *Gitlab) Scan() {
 		cloneOpts := g.manager.CloneOptions
 		cloneOpts := g.manager.CloneOptions
 		cloneOpts.URL = p.HTTPURLToRepo
 		cloneOpts.URL = p.HTTPURLToRepo
 		err := r.Clone(cloneOpts)
 		err := r.Clone(cloneOpts)
+		if err != nil {
+			log.Error(err)
+			continue
+		}
 		// TODO handle clone retry with ssh like github host
 		// TODO handle clone retry with ssh like github host
 		r.Name = p.Name
 		r.Name = p.Name