Merge pull request #9613 from pwaller/push-err-confusion-fix
Improve message when pushing a non-existent image Upstream-commit: e6a68a1c871e73c7b3f86839e9c21765fba24430 Component: engine
This commit is contained in:
@ -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