Skip to content

Commit e6ca33c

Browse files
committed
fix: go
1 parent 84f0d1d commit e6ca33c

File tree

1 file changed

+1
-1
lines changed
  • clients/algoliasearch-client-go/algolia/transport

1 file changed

+1
-1
lines changed

clients/algoliasearch-client-go/algolia/transport/transport.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func prepareRetryableRequest(req *http.Request) (*http.Request, error) {
5252

5353
bodyBytes, err := io.ReadAll(req.Body)
5454
if err != nil {
55-
return nil, err
55+
return nil, fmt.Errorf("cannot read body: %v", err)
5656
}
5757
_ = req.Body.Close() // close the original body
5858

0 commit comments

Comments
 (0)