mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #9613 from pwaller/push-err-confusion-fix
Improve message when pushing a non-existent image
This commit is contained in:
commit
e6a68a1c87
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ func (graph *Graph) Exists(id string) bool {
|
|||
func (graph *Graph) Get(name string) (*image.Image, error) {
|
||||
id, err := graph.idIndex.Get(name)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
return nil, fmt.Errorf("could not find image: %v", err)
|
||||
}
|
||||
img, err := image.LoadImage(graph.ImageRoot(id))
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue