浏览代码

Merge pull request #17605 from runcom/enhance-err-msg

graph: enhance err message on failed image restore
Alexander Morozov 9 年之前
父节点
当前提交
ca1e2d5782
共有 1 个文件被更改,包括 1 次插入1 次删除
  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]++