From 05b43dafe6ea4ada7673c47a19e0daaa59a9ddfa Mon Sep 17 00:00:00 2001 From: Lars Lehtonen Date: Mon, 18 Dec 2023 00:18:48 -0800 Subject: [PATCH] utils: fix dropped error --- utils/utils.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils/utils.go b/utils/utils.go index cb2fc7b..215939f 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -73,6 +73,9 @@ func (c *FetchConfig) FetchFile(file string) ([]byte, int, error) { client := &http.Client{Transport: tr} req, err := http.NewRequest("GET", file, nil) + if err != nil { + return nil, -1, err + } req.Header.Set("User-Agent", c.UserAgent) if c.Mime != "" { req.Header.Set("Accept", c.Mime)