Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(internal/gensupport): wrap retry failures with context and prev …
…error (#1684) Previously, if a call to sendAndRetry ran with retries until the context deadline, the error returned would be the final error from the service rather than the context expiration error. This change uses error wrapping to wrap the error from the service, while also preserving the context error in the message and with errors.Is. Fixes #1685
- Loading branch information
1 parent
6b0515b
commit f427ee3
Showing
1 changed file
with
29 additions
and
8 deletions.
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