Browse code

Merge pull request #9102 from brahmaroutu/add_tag_9001

improve error message to print the tag

Jessie Frazelle authored on 2014/11/12 18:37:40
Showing 1 changed files
... ...
@@ -177,7 +177,7 @@ func (s *TagStore) pullRepository(r *registry.Session, out io.Writer, localName,
177 177
 	repoData, err := r.GetRepositoryData(remoteName)
178 178
 	if err != nil {
179 179
 		if strings.Contains(err.Error(), "HTTP code: 404") {
180
-			return fmt.Errorf("Error: image %s not found", remoteName)
180
+			return fmt.Errorf("Error: image %s:%s not found", remoteName, askedTag)
181 181
 		}
182 182
 		// Unexpected HTTP error
183 183
 		return err