From: wmorgan Date: Fri, 6 Apr 2007 19:33:27 +0000 (+0000) Subject: added SSL errors to the list of shit we have to catch X-Git-Url: https://git.notmuchmail.org/git?a=commitdiff_plain;h=9eead59a75c43973e679909ad56d9c1f8e3c54c9;p=sup added SSL errors to the list of shit we have to catch git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@379 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- diff --git a/lib/sup/imap.rb b/lib/sup/imap.rb index 0f539ee..d5ee887 100644 --- a/lib/sup/imap.rb +++ b/lib/sup/imap.rb @@ -240,8 +240,8 @@ private end raise end - rescue SocketError, Net::IMAP::Error, SystemCallError, IOError => e - raise FatalSourceError, "While communicating with IMAP server: #{e.message}" + rescue SocketError, Net::IMAP::Error, SystemCallError, IOError, OpenSSL::SSL::SSLError => e + raise FatalSourceError, "While communicating with IMAP server (type #{e.class.name}): #{e.message}" end end