In retryablehttp client CheckRetry method, return err object when we … - #421
Conversation
…don't want to retry In the current implementation, the error from the HTTP client is gobbled up when a retryablehttp client is used. Changing it to have the CheckRetry implementation used by pf9ctl to return any error the request receieved and retry was not needed. Fixes: PCD-3055
Code Review Agent Run #32c6c9Actionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
Changelist by BitoThis pull request implements the following key changes.
|
…don't want to retry
In the current implementation, the error from the HTTP client is gobbled up when a retryablehttp client is used. Changing it to have the CheckRetry implementation used by pf9ctl to return any error the request receieved and retry was not needed.
Fixes: PCD-3055
Summary by Bito
This PR enhances documentation by improving inline comment spacing in cmd/detachNode.go for better clarity. It also strengthens error handling in pkg/util/helper.go by returning actual error objects instead of nils, ensuring proper error propagation throughout the codebase.