From 014993298a03a8baa83acbfbeae39f116f4bc0fc Mon Sep 17 00:00:00 2001 From: Etoh Date: Sat, 5 Nov 2022 23:06:58 +0000 Subject: [PATCH] More verbose connection error messages --- syncplay/protocols.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/syncplay/protocols.py b/syncplay/protocols.py index 53cdaf3..aa7da2a 100755 --- a/syncplay/protocols.py +++ b/syncplay/protocols.py @@ -105,6 +105,15 @@ class SyncClientProtocol(JSONCommandProtocol): self.dropWithError(getMessage("startTLS-server-certificate-invalid")) elif "mismatched_id=DNS_ID" in str(reason.value): self.dropWithError(getMessage("startTLS-server-certificate-invalid-DNS-ID")) + elif reason: + try: + self._client.ui.showErrorMessage(str(type(reason))) + self._client.ui.showErrorMessage(str(reason)) + if reason.stack: + self._client.ui.showErrorMessage(str(reason.stack)) + self._client.ui.showErrorMessage(str(reason.value)) + except: + pass except: pass self._client.destroyProtocol()