summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlnu <lnu@f70e237a-67f3-0310-a06c-d2b8a7116972>2006-12-01 22:27:34 +0000
committerlnu <lnu@f70e237a-67f3-0310-a06c-d2b8a7116972>2006-12-01 22:27:34 +0000
commitd9c42aef113f2a62523f9fc48184fb5b2ad41f6e (patch)
treeb254fb1ee17fa354811bfcf7b163f62f4e7f5252
parent0dddb4ddf7c2cc6ef524e998b315000a9420219f (diff)
downloadfeed2imap-d9c42aef113f2a62523f9fc48184fb5b2ad41f6e.tar.gz
feed2imap-d9c42aef113f2a62523f9fc48184fb5b2ad41f6e.tar.bz2
feed2imap-d9c42aef113f2a62523f9fc48184fb5b2ad41f6e.zip
fix to error msg
git-svn-id: svn+ssh://svn.gna.org/svn/feed2imap/trunk/feed2imap@116 f70e237a-67f3-0310-a06c-d2b8a7116972
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