1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

graph: enhance err message on failed image restore

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
Antonio Murdaca 2015-11-02 10:10:23 +01:00
parent c6fd886db3
commit f5fc832b6e

View file

@ -182,7 +182,7 @@ func (graph *Graph) restore() error {
if graph.driver.Exists(id) { if graph.driver.Exists(id) {
img, err := graph.loadImage(id) img, err := graph.loadImage(id)
if err != nil { if err != nil {
return err return fmt.Errorf("could not restore image %s: %v", id, err)
} }
graph.imageMutex.Lock(img.Parent) graph.imageMutex.Lock(img.Parent)
graph.parentRefs[img.Parent]++ graph.parentRefs[img.Parent]++