diff options
Diffstat (limited to 'lib/feed2imap')
-rw-r--r-- | lib/feed2imap/feed2imap.rb | 4 |
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 |