mirror of
https://github.com/clearlinux/docker.git
synced 2026-08-26 18:17:24 +00:00
graph: enhance err message on failed image restore
Signed-off-by: Antonio Murdaca <runcom@redhat.com> (cherry picked from commit f5fc832b6e786bbcd7dfe98b1ec04b8b8d1935ae)
This commit is contained in:
committed by
Tibor Vass
parent
75847fb840
commit
7be73fe0cb
+1
-1
@@ -182,7 +182,7 @@ func (graph *Graph) restore() error {
|
||||
if graph.driver.Exists(id) {
|
||||
img, err := graph.loadImage(id)
|
||||
if err != nil {
|
||||
return err
|
||||
return fmt.Errorf("could not restore image %s: %v", id, err)
|
||||
}
|
||||
graph.imageMutex.Lock(img.Parent)
|
||||
graph.parentRefs[img.Parent]++
|
||||
|
||||
Reference in New Issue
Block a user