From: wmorgan Date: Wed, 20 Dec 2006 19:47:40 +0000 (+0000) Subject: catch both MessageFormatErrors and SourceErrors X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=7be936cde7b96e535a11e795dc73cc4ddfb51f15;p=sup catch both MessageFormatErrors and SourceErrors git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@92 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- diff --git a/lib/sup/poll.rb b/lib/sup/poll.rb index e366154..4e1863c 100644 --- a/lib/sup/poll.rb +++ b/lib/sup/poll.rb @@ -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