Skip to content

Commit

Permalink
fix: improve error
Browse files Browse the repository at this point in the history
  • Loading branch information
sguiheux committed Apr 15, 2021
1 parent 14e10a3 commit 893ad50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/cdsclient/http.go
Expand Up @@ -230,7 +230,7 @@ func (c *client) Stream(ctx context.Context, httpClient HTTPClient, method strin
var requestError error
if rs, ok := body.(io.ReadSeeker); ok {
if _, err := rs.Seek(0, 0); err != nil {
return nil, nil, 0, newError(fmt.Errorf("request failed after %d retries: %v", i, err))
return nil, nil, 0, newError(fmt.Errorf("request failed after %d retries: %v. Original error: %v", i, err, savederror))
}
req, requestError = http.NewRequest(method, url, body)
} else {
Expand Down

0 comments on commit 893ad50

Please sign in to comment.