summaryrefslogtreecommitdiff
path: root/lib/feed2imap/feed2imap.rb
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lib/feed2imap/feed2imap.rb4
1 files changed, 2 insertions, 2 deletions
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