Skip to content

Commit

Permalink
πŸ”„ Sync from monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
mojo-machine[bot] committed Dec 31, 2024
1 parent 1d90c42 commit f179c33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jsonclient/jsonclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit f179c33

Please sign in to comment.