Skip to content

Commit 889a27b

Browse files
committed
error
1 parent d7f55aa commit 889a27b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/service-library/src/servicelib/aiohttp/rest_middlewares.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,12 @@ def _handle_http_error(
132132

133133
error_model = ErrorGet(
134134
errors=[
135-
ErrorItemType.from_error(exception),
135+
ErrorItemType(
136+
code=exception.__class__.__name__,
137+
message=user_error_msg,
138+
resource=None,
139+
field=None,
140+
),
136141
],
137142
status=exception.status,
138143
logs=[

0 commit comments

Comments
 (0)