From 0a5d86d7beba53332e1c842e61a5751b95894601 Mon Sep 17 00:00:00 2001 From: Victor Vieux Date: Thu, 9 May 2013 18:57:47 +0200 Subject: [PATCH] fix run after rmi --- graph.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graph.go b/graph.go index 84b8c9a1e9..cafaec14d7 100644 --- a/graph.go +++ b/graph.go @@ -62,7 +62,7 @@ func (graph *Graph) restore() error { // FIXME: Implement error subclass instead of looking at the error text // Note: This is the way golang implements os.IsNotExists on Plan9 func (graph *Graph) IsNotExist(err error) bool { - return err != nil && strings.Contains(err.Error(), "does not exist") + return err != nil && (strings.Contains(err.Error(), "does not exist") || strings.Contains(err.Error(), "No such")) } // Exists returns true if an image is registered at the given id.