From 6d6f3141f15319d7d74ab3beeeeed4ec1309ea63 Mon Sep 17 00:00:00 2001 From: Antonio Murdaca Date: Mon, 2 Nov 2015 10:10:23 +0100 Subject: [PATCH] graph: enhance err message on failed image restore Signed-off-by: Antonio Murdaca Upstream-commit: f5fc832b6e786bbcd7dfe98b1ec04b8b8d1935ae Component: engine --- components/engine/graph/graph.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/engine/graph/graph.go b/components/engine/graph/graph.go index ce84c0c348..96a1065d95 100644 --- a/components/engine/graph/graph.go +++ b/components/engine/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]++