From 21a0c05e321094ae9c22c2d7383d0967fe2141f9 Mon Sep 17 00:00:00 2001 From: wmorgan Date: Sun, 4 Mar 2007 23:08:13 +0000 Subject: [PATCH] better error messages git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@344 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- lib/sup/message.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/sup/message.rb b/lib/sup/message.rb index be2cb86..c392c44 100644 --- 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 -- 2.45.2