commit d4f7e7239ee240f0bdfc52538d26f6408055597d
parent 375a0164b81933bb57ec43fac35b7c92c44ef273
Author: wmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Date: Wed, 4 Apr 2007 16:09:28 +0000
made source errors actually log like i claim they do
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@376 5c8cc53c-5e98-4d25-b20a-d8db53a31250
Diffstat:
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/doc/TODO b/doc/TODO
@@ -1,5 +1,6 @@
for 0.0.9
---------
+_ bugfix: read before thread-index has finished loading then hides the thread?!? wtf. (on jamie)
_ bugfix: sup-add not prompting for old accounts, i think? possibly because
sources no longer respond_to? :username due to Recoverable wrapping
_ bugfix: rmail multipart error
diff --git a/lib/sup/message.rb b/lib/sup/message.rb
@@ -190,6 +190,7 @@ class Message
read_header @source.load_header(@source_info)
message_to_chunks @source.load_message(@source_info)
rescue SourceError, SocketError, MessageFormatError => e
+ Redwood::log "problem getting messages from #{@source}: #{e.message}"
## we need force_to_top here otherwise this window will cover
## up the error message one
Redwood::report_broken_sources :force_to_top => true
@@ -221,6 +222,7 @@ EOS
begin
@source.raw_header @source_info
rescue SourceError => e
+ Redwood::log "problem getting messages from #{@source}: #{e.message}"
error_message e.message
end
end
@@ -229,6 +231,7 @@ EOS
begin
@source.raw_full_message @source_info
rescue SourceError => e
+ Redwood::log "problem getting messages from #{@source}: #{e.message}"
error_message(e.message)
end
end