From d4f7e7239ee240f0bdfc52538d26f6408055597d Mon Sep 17 00:00:00 2001 From: wmorgan Date: Wed, 4 Apr 2007 16:09:28 +0000 Subject: [PATCH] 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 --- doc/TODO | 1 + lib/sup/message.rb | 3 +++ 2 files changed, 4 insertions(+) diff --git a/doc/TODO b/doc/TODO index 10e0b80..6bcbbd4 100644 --- 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 index 61d2397..4b94482 100644 --- 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 -- 2.45.2