Improve unexpected response error handling in resolver#6617
Improve unexpected response error handling in resolver#6617estesp merged 2 commits intocontainerd:mainfrom FabHof:main
Conversation
|
Hi @FabHof. Thanks for your PR. I'm waiting for a containerd member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Signed-off-by: Fabian Hoffmann <[email protected]>
|
Build succeeded.
|
|
The default string format of the |
|
I'd like to avoid reducing information on the errors. It is useful for troubleshooting. |
Signed-off-by: Fabian Hoffmann <[email protected]>
|
I would expect Maybe this improved default error string is better? func (e ErrUnexpectedStatus) Error() string {
- return fmt.Sprintf("unexpected status: %s", e.Status)
+ return fmt.Sprintf("unexpected status from %s request to %s: %s", e.RequestMethod, e.RequestURL, e.Status)
} |
|
Build succeeded.
|
No description provided.