From 373fd1ce16f5699afc55d595ec6a4e684b7483bc Mon Sep 17 00:00:00 2001 From: Jessica Frazelle Date: Tue, 21 Oct 2014 16:42:21 -0700 Subject: [PATCH] Fixes #8690 Docker-DCO-1.1-Signed-off-by: Jessica Frazelle (github: jfrazelle) --- graph/graph.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graph/graph.go b/graph/graph.go index 00c0324ea8..d5d4fcdab1 100644 --- a/graph/graph.go +++ b/graph/graph.go @@ -72,7 +72,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") || strings.Contains(err.Error(), "No such")) + return err != nil && (strings.Contains(strings.ToLower(err.Error()), "does not exist") || strings.Contains(strings.ToLower(err.Error()), "no such")) } // Exists returns true if an image is registered at the given id.