aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Magorsch <arzano@gentoo.org>2020-06-19 18:53:35 +0200
committerMax Magorsch <arzano@gentoo.org>2020-06-19 18:53:35 +0200
commit3cfc78276872f5038224b7e035942ec3148f30d6 (patch)
tree10ae91ea99074de251e7769dff63119f23d9f567
parentDon't abort when parsing the body fails (diff)
downloadarchives-3cfc78276872f5038224b7e035942ec3148f30d6.tar.gz
archives-3cfc78276872f5038224b7e035942ec3148f30d6.tar.bz2
archives-3cfc78276872f5038224b7e035942ec3148f30d6.zip
Improve the error handling during the import
Signed-off-by: Max Magorsch <arzano@gentoo.org>
-rw-r--r--pkg/importer/utils.go1
1 files changed, 1 insertions, 0 deletions
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)
}