From 3d9bf280791bec20299e611527941cc966ee5df2 Mon Sep 17 00:00:00 2001 From: Juan Manuel Fresia Date: Mon, 15 Jun 2020 17:18:04 -0300 Subject: [PATCH] Fix merge error Signed-off-by: Juan Manuel Fresia --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.go b/client.go index 3afb6b7..8a8ae08 100644 --- a/client.go +++ b/client.go @@ -626,7 +626,7 @@ func (c *Client) Do(req *Request) (*http.Response, error) { if doErr != nil { switch v := logger.(type) { case LeveledFormatLogger: - v.Errorf("%s %s: request failed: %s", req.Method, req.URL, err) + v.Errorf("%s %s: request failed: %s", req.Method, req.URL, doErr) case LeveledLogger: v.Error("request failed", "error", doErr, "method", req.Method, "url", req.URL) case Logger: