Pārlūkot izejas kodu

graph: enhance err message on failed image restore

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
Antonio Murdaca 9 gadi atpakaļ
vecāks
revīzija
f5fc832b6e
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      graph/graph.go

+ 1 - 1
graph/graph.go

@@ -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]++