mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
improve error message to print the tag
Closes #9001 Signed-off-by: Srini Brahmaroutu <srbrahma@us.ibm.com>
This commit is contained in:
parent
e08d1f6af2
commit
bc45428220
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue