ソースを参照

improve error message to print the tag
Closes #9001

Signed-off-by: Srini Brahmaroutu <srbrahma@us.ibm.com>

Srini Brahmaroutu 10 年 前
コミット
bc45428220
1 ファイル変更1 行追加1 行削除
  1. 1 1
      graph/pull.go

+ 1 - 1
graph/pull.go

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