More verbose error for parallel pull
| ... | ... |
@@ -1236,9 +1236,10 @@ func (srv *Server) pullRepository(r *registry.Registry, out io.Writer, localName |
| 1236 | 1236 |
break |
| 1237 | 1237 |
} |
| 1238 | 1238 |
if !success {
|
| 1239 |
- out.Write(sf.FormatProgress(utils.TruncateID(img.ID), fmt.Sprintf("Error pulling image (%s) from %s, %s", img.Tag, localName, lastErr), nil))
|
|
| 1239 |
+ err := fmt.Errorf("Error pulling image (%s) from %s, %v", img.Tag, localName, lastErr)
|
|
| 1240 |
+ out.Write(sf.FormatProgress(utils.TruncateID(img.ID), err.Error(), nil)) |
|
| 1240 | 1241 |
if parallel {
|
| 1241 |
- errors <- fmt.Errorf("Could not find repository on any of the indexed registries.")
|
|
| 1242 |
+ errors <- err |
|
| 1242 | 1243 |
return |
| 1243 | 1244 |
} |
| 1244 | 1245 |
} |