Browse code

improve error message to print the tag Closes #9001

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

Srini Brahmaroutu authored on 2014/11/12 07:17:53
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