From c908f0eb50082b9a32af12802247c522c3087099 Mon Sep 17 00:00:00 2001 From: Andrew Ferrazzutti Date: Tue, 6 Sep 2022 00:20:59 -0400 Subject: [PATCH] Show connection failure message in bot response --- matrix_appservice_kakaotalk/user.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matrix_appservice_kakaotalk/user.py b/matrix_appservice_kakaotalk/user.py index b693246..3500aa9 100644 --- a/matrix_appservice_kakaotalk/user.py +++ b/matrix_appservice_kakaotalk/user.py @@ -424,10 +424,10 @@ class User(DBUser, BaseUser): state_event=BridgeStateEvent.UNKNOWN_ERROR, error_code="kt-reconnection-error", ) - except Exception: + except Exception as e: self.log.exception("Error connecting to KakaoTalk") await self.send_bridge_notice( - "Failed to connect to KakaoTalk: unknown error (see logs for more details)", + f"Failed to connect to KakaoTalk: {e.message}", edit=event_id, state_event=BridgeStateEvent.UNKNOWN_ERROR, error_code="kt-reconnection-error",