]> git.notmuchmail.org Git - sup/commitdiff
better error messages
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Sun, 4 Mar 2007 23:08:13 +0000 (23:08 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Sun, 4 Mar 2007 23:08:13 +0000 (23:08 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@344 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup/message.rb

index be2cb8618076aa99a8e88e5e1cf21380320df8c5..c392c44d6b97775625e55168aa43270676339764 100644 (file)
@@ -202,8 +202,9 @@ class Message
 #@snippet...
 
 ***********************************************************************
-* An error occurred while loading this message. It is possible that   *
-* the source has changed, or (in the case of remote sources) is down. *
+ An error occurred while loading this message. It is possible that
+ the source has changed, or (in the case of remote sources) is down.
+ The message source and offset are: #@source##@source_info
 ***********************************************************************
 
 The error message was:
@@ -259,7 +260,7 @@ private
     ret = [] <<
       case m.header.content_type
       when "text/plain", nil
-        m.body && body = m.decode or raise MessageFormatError, "for some bizarre reason, RubyMail was unable to parse this message."
+        m.body && body = m.decode or raise MessageFormatError, "For some bizarre reason, RubyMail was unable to parse this message."
         text_to_chunks body.normalize_whitespace.split("\n")
       when /^multipart\//
         nil