mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-06 05:31:47 +00:00
Merge pull request #9613 from pwaller/push-err-confusion-fix
Improve message when pushing a non-existent image
This commit is contained in:
+1
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user