From f5fc832b6e786bbcd7dfe98b1ec04b8b8d1935ae 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 --- graph/graph.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graph/graph.go b/graph/graph.go index ce84c0c348..96a1065d95 100644 --- a/graph/graph.go +++ b/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]++