Show connection failure message in bot response

This commit is contained in:
Andrew Ferrazzutti 2022-09-06 00:20:59 -04:00
parent 73809ba087
commit c908f0eb50

View File

@ -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",