commit 21a0c05e321094ae9c22c2d7383d0967fe2141f9
parent 718a633c9015a4f551f6c3e1e4eb14c80899a1d3
Author: wmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Date: Sun, 4 Mar 2007 23:08:13 +0000
better error messages
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@344 5c8cc53c-5e98-4d25-b20a-d8db53a31250
Diffstat:
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/lib/sup/message.rb b/lib/sup/message.rb
@@ -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