-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
client-go: add an Error() function on Request
Requests can accumulate errors with no obvious indication, e.g. if their primary purpose is to construct a URL: URL() itself doesn't return an error if r.err is non-nil. Instead of changing URL() to return an error, which has quite a large impact, add an Error() function and indicate on URL() that it should be checked. Signed-off-by: Stephen Kitt <skitt@redhat.com> Kubernetes-commit: f69c1c47463ff70ad61adf6f38c4d5b7373e9d0a
- Loading branch information
1 parent
d462933
commit 22e2a9b
Showing
2 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters