From 1045344943819fd913b5b55a5fd0db5e633aa344 Mon Sep 17 00:00:00 2001 From: albertony <12441419+albertony@users.noreply.github.com> Date: Sun, 23 Jan 2022 23:19:06 +0100 Subject: [PATCH] http: status string already includes the status code --- backend/http/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/http/http.go b/backend/http/http.go index 34de6a458..15ea2744c 100644 --- a/backend/http/http.go +++ b/backend/http/http.go @@ -129,7 +129,7 @@ func statusError(res *http.Response, err error) error { } if res.StatusCode < 200 || res.StatusCode > 299 { _ = res.Body.Close() - return fmt.Errorf("HTTP Error %d: %s", res.StatusCode, res.Status) + return fmt.Errorf("HTTP Error: %s", res.Status) } return nil }