From 3cfc78276872f5038224b7e035942ec3148f30d6 Mon Sep 17 00:00:00 2001 From: Max Magorsch Date: Fri, 19 Jun 2020 18:53:35 +0200 Subject: Improve the error handling during the import Signed-off-by: Max Magorsch --- pkg/importer/utils.go | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg/importer') diff --git a/pkg/importer/utils.go b/pkg/importer/utils.go index 2fe73e8..b2a5b63 100644 --- a/pkg/importer/utils.go +++ b/pkg/importer/utils.go @@ -76,6 +76,7 @@ func getBodyParts(body io.Reader, boundary string) map[string]string { if err != nil { fmt.Println("Error while reading the body:") fmt.Println(err) + continue } bodyParts[p.Header.Get("Content-Type")] = string(slurp) } -- cgit v1.2.3-65-gdbad