]> git.cworth.org Git - sup/commitdiff
added SSL errors to the list of shit we have to catch
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Fri, 6 Apr 2007 19:33:27 +0000 (19:33 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Fri, 6 Apr 2007 19:33:27 +0000 (19:33 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@379 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup/imap.rb

index 0f539eea4f7fa26e5f1bd61ca714d84e2601825c..d5ee887895392106d039ada8623ce51ec417c6bb 100644 (file)
@@ -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