From 90244b7fa65eb47fc6545e4c5b05d555f5847100 Mon Sep 17 00:00:00 2001 From: Nicolas Sebrecht Date: Fri, 30 Jun 2017 05:10:14 +0200 Subject: [PATCH] provide more details in error message when SSL fails on non-standard port Signed-off-by: Nicolas Sebrecht --- offlineimap/imapserver.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/offlineimap/imapserver.py b/offlineimap/imapserver.py index fad8f37..099d143 100644 --- a/offlineimap/imapserver.py +++ b/offlineimap/imapserver.py @@ -619,7 +619,8 @@ class IMAPServer(object): if self.port != 993: reason = "Could not connect via SSL to host '%s' and non-s"\ "tandard ssl port %d configured. Make sure you connect"\ - " to the correct port."% (self.hostname, self.port) + " to the correct port. Got: %s"% + (self.hostname, self.port, e) else: reason = "Unknown SSL protocol connecting to host '%s' for "\ "repository '%s'. OpenSSL responded:\n%s"\