From 8116e7744b82fb97e2d4f2a8a63a528d02727b35 Mon Sep 17 00:00:00 2001 From: Etoh Date: Tue, 28 Feb 2023 20:31:23 +0000 Subject: [PATCH] More verbose connection error messages (#565) --- 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()