1
0
Fork 0
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:
Jessie Frazelle 2014-12-15 09:54:34 -08:00
commit e6a68a1c87

View file

@ -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 {