We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72eba19 commit 93bfa17Copy full SHA for 93bfa17
āpackages/service-library/src/servicelib/aiohttp/rest_middlewares.pyā
@@ -117,8 +117,7 @@ def _handle_http_error(
117
118
if not exception.text or not is_enveloped_from_text(exception.text):
119
# NOTE: aiohttp.HTTPException creates `text = f"{self.status}: {self.reason}"`
120
- # We do not like for the user to pop up a message like "401: You are not authorized"
121
- user_error_msg = exception.reason or exception.text or "Unexpected error"
+ user_error_msg = exception.text or "Unexpected error"
122
error_model = ErrorGet(
123
errors=[
124
ErrorItemType.from_error(exception),
0 commit comments