propagate error from grpc client

This commit is contained in:
a10zn8
2023-06-06 19:41:04 +04:00
parent df8586258f
commit 0f0a5c9425

View File

@@ -95,8 +95,9 @@ class JsonRpcGrpcClient(
metrics?.fails?.increment()
Mono.error(
RpcException(
RpcResponseError.CODE_UPSTREAM_CONNECTION_ERROR,
resp.errorMessage
resp.errorCode,
resp.errorMessage,
if (resp.errorData == null || resp.errorData.isEmpty()) null else resp.errorData
)
)
}