mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-30 15:35:33 +08:00
[skip ci](shards): fix issue to show exception messages in error log (#2115)
Signed-off-by: SkyYang <mooncity.sky@163.com>
This commit is contained in:
parent
fc96165817
commit
29a4d58432
@ -9,6 +9,11 @@ class BaseException(Exception):
|
||||
self.message = self.__class__.__name__ if not message else message
|
||||
self.metadata = metadata
|
||||
|
||||
def __repr__(self):
|
||||
return self.message
|
||||
|
||||
__str__ = __repr__
|
||||
|
||||
|
||||
class ConnectionConnectError(BaseException):
|
||||
code = codes.CONNECT_ERROR_CODE
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user