mirror of
https://github.com/moby/moby.git
synced 2026-08-03 22:51:03 +00:00
Merge pull request #17605 from runcom/enhance-err-msg
graph: enhance err message on failed image restore
This commit is contained in:
@@ -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