From 70138c2f4b9c5cc0e1415145fd3478d9ea35f104 Mon Sep 17 00:00:00 2001 From: MRXLT Date: Thu, 22 Oct 2020 20:29:39 +0800 Subject: [PATCH] refine grpc client error msg --- python/paddle_serving_client/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle_serving_client/__init__.py b/python/paddle_serving_client/__init__.py index d350b584..2ac32066 100644 --- a/python/paddle_serving_client/__init__.py +++ b/python/paddle_serving_client/__init__.py @@ -643,7 +643,7 @@ class MultiLangClient(object): self.profile_.print_profile() return ret except grpc.RpcError as e: - return {"serving_status_code": e.code()} + return {"serving_grpc_error": e} else: req = self._pack_inference_request( feed, fetch, is_python=is_python, log_id=log_id) -- GitLab