-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(errors): improve HandleError to handle rest_errors.Error and fix …
…Unauthenticated error handling (#7818) * Update HandleError to process pointer to rest_errors.Error as an argument. This allows us to use errors.As directly, which simplifies the code and slightly improves performance. * Fix a bug in HandleError where it was incorrectly assigning err to itself in the case of an Unauthenticated error. Signed-off-by: Bart Smykla <[email protected]>
- Loading branch information
1 parent
25726ff
commit a4e04d2
Showing
1 changed file
with
22 additions
and
21 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