improve error message to print the tag

Closes #9001

Signed-off-by: Srini Brahmaroutu <srbrahma@us.ibm.com>
Upstream-commit: bc45428220e4a8d05d9a0cbc701a729f7fe2aa8d
Component: engine
This commit is contained in:
Srini Brahmaroutu
2014-11-11 22:17:53 +00:00
parent a4433b9e0f
commit 4442912970

View File

@ -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