]> git.cworth.org Git - sup/commitdiff
catch both MessageFormatErrors and SourceErrors
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Wed, 20 Dec 2006 19:47:40 +0000 (19:47 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Wed, 20 Dec 2006 19:47:40 +0000 (19:47 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@92 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup/poll.rb

index e36615464b9c00a838242e8aa053f66b58be55dd..4e1863c8edc1e8c35cdf30bf018948d7429a2bfc 100644 (file)
@@ -71,7 +71,7 @@ class PollManager
             total_num += 1
             total_numi += 1 if m.labels.include? :inbox
           end
-        rescue Redwood::MessageFormatError => e
+        rescue SourceError, MessageFormatError => e
           yield "Ignoring erroneous message at #{source}##{offset}: #{e.message}"
         end