Set error description

pull/22343/head
Mariano Anaya 5 years ago committed by Lidi Zheng
parent 764be7ed92
commit a1bb0bc6f8
  1. 7
      src/python/grpcio/grpc/experimental/aio/_call.py

@ -281,8 +281,13 @@ class _UnaryResponseMixin(Call):
if self._cython_call.is_locally_cancelled():
raise asyncio.CancelledError()
else:
call_status = self._cython_call._status
debug_error_string = None
if call_status is not None:
debug_error_string = call_status._debug_error_string
raise _create_rpc_error(self._cython_call._initial_metadata,
self._cython_call._status)
call_status,
debug_error_string)
else:
return response

Loading…
Cancel
Save