Merge pull request #9102 from brahmaroutu/add_tag_9001

improve error message to print the tag
This commit is contained in:
Jessie Frazelle 2014-11-12 02:37:40 -07:00
Родитель 1396cff375 bc45428220
Коммит 6ad1cd5d0f
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -177,7 +177,7 @@ func (s *TagStore) pullRepository(r *registry.Session, out io.Writer, localName,
repoData, err := r.GetRepositoryData(remoteName)
if err != nil {
if strings.Contains(err.Error(), "HTTP code: 404") {
return fmt.Errorf("Error: image %s not found", remoteName)
return fmt.Errorf("Error: image %s:%s not found", remoteName, askedTag)
}
// Unexpected HTTP error
return err