From 1ec6d7fe66f7b0267caf7181fd9dfa50ca547f18 Mon Sep 17 00:00:00 2001 From: dlorenc Date: Thu, 31 Aug 2017 11:21:05 -0700 Subject: [PATCH] Remove panic. --- utils/image_prep_utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/image_prep_utils.go b/utils/image_prep_utils.go index 029c5c01..d86146af 100644 --- a/utils/image_prep_utils.go +++ b/utils/image_prep_utils.go @@ -117,7 +117,7 @@ func (p CloudPrepper) getFileSystem() (string, error) { path := strings.Replace(URLMatch[1], ":", "", -1) ref, err := docker.ParseReference("//" + p.Source) if err != nil { - panic(err) + return "", err } // By default, the image library will try to look at /etc/docker/certs.d