From f179c333bc165b0a4b5cca77bdf8bf381c2d65a4 Mon Sep 17 00:00:00 2001 From: "mojo-machine[bot]" <111131124+mojo-machine[bot]@users.noreply.github.com> Date: Tue, 31 Dec 2024 11:02:11 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=84=20Sync=20from=20monorepo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/wearemojo/mojo/commit/4c72e77e969be35fcba8d29358af3eb83a1dda5f --- lib/jsonclient/jsonclient.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jsonclient/jsonclient.go b/lib/jsonclient/jsonclient.go index d63186c..70c3b08 100644 --- a/lib/jsonclient/jsonclient.go +++ b/lib/jsonclient/jsonclient.go @@ -105,7 +105,7 @@ func (c *Client) DoWithHeaders(ctx context.Context, method, path string, headers if err != nil { if netErr, ok := gerrors.As[net.Error](err); ok { if netErr.Timeout() { - return cher.New(cher.RequestTimeout, cher.M{"method": method, "path": fullPath, "host": c.Host, "scheme": c.Scheme, "timeout_error": netErr}) + return cher.New(cher.RequestTimeout, cher.M{"method": method, "path": fullPath, "host": c.Host, "scheme": c.Scheme, "timeout_error": netErr.Error()}) } return ClientTransportError{method, path, "request failed", netErr}