Skip to content

Commit

Permalink
More verbose connection error messages (#565)
Browse files Browse the repository at this point in the history
  • Loading branch information
Et0h authored Feb 28, 2023
1 parent e1bcf12 commit 8116e77
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions syncplay/protocols.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,15 @@ def connectionLost(self, reason):
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()
Expand Down

0 comments on commit 8116e77

Please sign in to comment.