summaryrefslogtreecommitdiff
path: root/lib/feed2imap/feed2imap.rb
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 /lib/feed2imap/feed2imap.rb
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 'lib/feed2imap/feed2imap.rb')
-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