diff options
author | Jon Bratseth <bratseth@gmail.com> | 2021-08-30 16:26:37 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@gmail.com> | 2021-08-30 16:26:37 +0200 |
commit | 77838818bd1f637fa27aeaf7168fd8c873c1e459 (patch) | |
tree | d7368e421b54256e4862fd2b81ff50f7bc87311c /client/go/util | |
parent | 5777a479fb15852714d3ef476efc19aa62c3eb75 (diff) |
Tweak colors and messages
Diffstat (limited to 'client/go/util')
-rw-r--r-- | client/go/util/http.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/client/go/util/http.go b/client/go/util/http.go index 38224d2a842..7236f38b945 100644 --- a/client/go/util/http.go +++ b/client/go/util/http.go @@ -8,7 +8,6 @@ import ( "fmt" "net/http" "net/url" - "strings" "time" ) @@ -48,7 +47,7 @@ func HttpGet(host string, path string, description string) (*http.Response, erro func HttpDo(request *http.Request, timeout time.Duration, description string) (*http.Response, error) { response, err := ActiveHttpClient.Do(request, timeout) if err != nil { - return nil, fmt.Errorf("Could not connect to %s at %s: %w", strings.ToLower(description), request.URL.Host, err) + return nil, err } return response, nil } |