mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
More verbose error for parallel pull
Partially fixes #6484 Docker-DCO-1.1-Signed-off-by: Alexandr Morozov <lk4d4math@gmail.com> (github: LK4D4)
This commit is contained in:
parent
f0ec901819
commit
3303789b4f
1 changed files with 3 additions and 2 deletions
|
@ -1238,9 +1238,10 @@ func (srv *Server) pullRepository(r *registry.Registry, out io.Writer, localName
|
|||
break
|
||||
}
|
||||
if !success {
|
||||
out.Write(sf.FormatProgress(utils.TruncateID(img.ID), fmt.Sprintf("Error pulling image (%s) from %s, %s", img.Tag, localName, lastErr), nil))
|
||||
err := fmt.Errorf("Error pulling image (%s) from %s, %v", img.Tag, localName, lastErr)
|
||||
out.Write(sf.FormatProgress(utils.TruncateID(img.ID), err.Error(), nil))
|
||||
if parallel {
|
||||
errors <- fmt.Errorf("Could not find repository on any of the indexed registries.")
|
||||
errors <- err
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue