Skip to content
This repository was archived by the owner on Mar 27, 2024. It is now read-only.

Commit ab91cbf

Browse files
Merge pull request #65 from dlorenc/panic
Remove panic.
2 parents fb36d4c + 1ec6d7f commit ab91cbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/image_prep_utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ func (p CloudPrepper) getFileSystem() (string, error) {
117117
path := strings.Replace(URLMatch[1], ":", "", -1)
118118
ref, err := docker.ParseReference("//" + p.Source)
119119
if err != nil {
120-
panic(err)
120+
return "", err
121121
}
122122

123123
// By default, the image library will try to look at /etc/docker/certs.d

0 commit comments

Comments
 (0)