Skip to content

Commit

Permalink
Improve robustness of Docker registry V2 client
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanilves committed Oct 20, 2017
1 parent 98dd0bd commit 1565f72
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tag/remote/remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,12 @@ func FetchTags(registry, repo, authorization string, concurrentRequests int, fil
dr := <-ch

if dr.Error != nil {
if strings.Contains(dr.Error.Error(), "404 Not Found") {
println(dr.Error.Error())

continue
}

return nil, dr.Error
}

Expand Down

0 comments on commit 1565f72

Please sign in to comment.