未验证 提交 29a4d584 编写于 作者: mooncity500's avatar mooncity500 提交者: GitHub

[skip ci](shards): fix issue to show exception messages in error log (#2115)

Signed-off-by: mooncity500's avatarSkyYang <mooncity.sky@163.com>
上级 fc961658
...@@ -9,6 +9,11 @@ class BaseException(Exception): ...@@ -9,6 +9,11 @@ class BaseException(Exception):
self.message = self.__class__.__name__ if not message else message self.message = self.__class__.__name__ if not message else message
self.metadata = metadata self.metadata = metadata
def __repr__(self):
return self.message
__str__ = __repr__
class ConnectionConnectError(BaseException): class ConnectionConnectError(BaseException):
code = codes.CONNECT_ERROR_CODE code = codes.CONNECT_ERROR_CODE
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册