-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
properly handle echo http wrapped errors (#288)
Errors may be wrapped by a specific echo http error by a handler. In some cases (such as canceled context) this might report as a 500 error, however this error might've been triggered by the requestor. To simplify handling this scenario, we will unwrap the http error, preserving the original message only if the error is a context canceled error and the request context has been canceled. Signed-off-by: Mike Mason <[email protected]>
- Loading branch information
Showing
2 changed files
with
80 additions
and
9 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
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