From 15374f63556ae0b5a40a3b09d17fdeb5076eb19a Mon Sep 17 00:00:00 2001 From: XuanYang-cn Date: Tue, 26 Nov 2024 14:54:27 +0800 Subject: [PATCH] enhance: Enhance log messages when Connect with server failed (#2377) See also: #2355 Signed-off-by: yangxuan --- pymilvus/decorators.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pymilvus/decorators.py b/pymilvus/decorators.py index a85132039..6558ec2d8 100644 --- a/pymilvus/decorators.py +++ b/pymilvus/decorators.py @@ -207,8 +207,8 @@ def handler(*args, **kwargs): except grpc.RpcError as e: if e.code() == grpc.StatusCode.UNIMPLEMENTED: msg = ( - "this version of sdk is incompatible with server, " - "please downgrade your sdk or upgrade your server" + "Incorrect port or sdk is incompatible with server, " + "please check your port or downgrade your sdk or upgrade your server" ) raise MilvusException(message=msg) from e raise e from e