summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ChangeLog2
-rw-r--r--lib/feed2imap/feed2imap.rb4
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