From d9c42aef113f2a62523f9fc48184fb5b2ad41f6e Mon Sep 17 00:00:00 2001 From: lnu Date: Fri, 1 Dec 2006 22:27:34 +0000 Subject: fix to error msg git-svn-id: svn+ssh://svn.gna.org/svn/feed2imap/trunk/feed2imap@116 f70e237a-67f3-0310-a06c-d2b8a7116972 --- ChangeLog | 2 +- lib/feed2imap/feed2imap.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index ec0c198..06d3165 100644 --- a/ChangeLog +++ b/ChangeLog @@ -9,7 +9,7 @@ Feed2Imap 0.9 (XX/XX/2006) * A debug mode was added, and the normal mode was improved, so it is no longer necessary to redirect feed2imap output to /dev/null: transient errors are only reported after they have happened a - certain number of times (default 5). + certain number of times (default 10). * An ignore-hash option was added for feeds whose content change all the time. diff --git a/lib/feed2imap/feed2imap.rb b/lib/feed2imap/feed2imap.rb index a3666db..72743f5 100644 --- a/lib/feed2imap/feed2imap.rb +++ b/lib/feed2imap/feed2imap.rb @@ -181,9 +181,9 @@ class Feed2Imap end begin feed = FeedParser::Feed::new(f.body) - rescue Exception => e + rescue Exception n = @cache.parse_failed(f.name) - m = "Error while parsing #{f.name}: #{e} (failed #{n} times)" + m = "Error while parsing #{f.name}: #{$!} (failed #{n} times)" if n > @config.max_failures @logger.fatal(m) else -- cgit v1.2.3-54-g00ecf