1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #7043 from ipbabble/404NotFound

This commit is contained in:
Solomon Hykes 2014-07-18 18:39:42 -07:00
commit 93a7c84b6f

View file

@ -1195,8 +1195,13 @@ func (srv *Server) pullRepository(r *registry.Registry, out io.Writer, localName
repoData, err := r.GetRepositoryData(remoteName) repoData, err := r.GetRepositoryData(remoteName)
if err != nil { if err != nil {
if strings.Contains(err.Error(), "HTTP code: 404") {
return fmt.Errorf("Error: image %s not found", remoteName)
} else {
// Unexpected HTTP error
return err return err
} }
}
utils.Debugf("Retrieving the tag list") utils.Debugf("Retrieving the tag list")
tagsList, err := r.GetRemoteTags(repoData.Endpoints, remoteName, repoData.Tokens) tagsList, err := r.GetRemoteTags(repoData.Endpoints, remoteName, repoData.Tokens)