Skip to content

Commit

Permalink
fix exception detail
Browse files Browse the repository at this point in the history
  • Loading branch information
bisgaard-itis committed Dec 12, 2024
1 parent 582fb9b commit 9e173b9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ def service_exception_handler(
RemoteMethodNotRegisteredError,
}: # https://github.com/ITISFoundation/osparc-simcore/blob/master/packages/service-library/src/servicelib/rabbitmq/_client_rpc.py#L76
raise HTTPException(
status_code=status.HTTP_502_BAD_GATEWAY, detail="Request to failed"
status_code=status.HTTP_502_BAD_GATEWAY,
detail="Request to backend failed",
) from exc
if backend_error_type := rpc_exception_map.get(type(exc)):
raise backend_error_type(**context) from exc
Expand Down

0 comments on commit 9e173b9

Please sign in to comment.