Subject: [sup-talk] [PATCH] message.rb: Fix the usage of error_message and Chunk::Text.new.

From: [email-masked] (Nicolas Pouillard)
Date: Tue, 8 Jan 2008 02:40:44 +0100

---
 lib/sup/message.rb |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/sup/message.rb b/lib/sup/message.rb
index b342ea5..01008ed 100644
--- a/lib/sup/message.rb
+++ b/lib/sup/message.rb
@@ -163,7 +163,7 @@ class Message
   def load_from_source!
     @chunks ||=
       if @source.has_errors?
-        [Chunk::Text.new(error_message(@source.error.message.split("\n")))]
+        [Chunk::Text.new(error_message(@source.error.message).split("\n"))]
       else
         begin
           ## we need to re-read the header because it contains information
@@ -182,7 +182,7 @@ class Message
           ## up the error message one
           @source.error ||= e
           Redwood::report_broken_sources :force_to_top => true
-          [Chunk::Text.new(error_message(e.message))]
+          [Chunk::Text.new(error_message(e.message).split("\n"))]
         end
       end
   end
-- 
1.5.3.1.109.gacd69

---

From: [email-masked] (William Morgan)
Date: Mon, 07 Jan 2008 22:36:35 -0800

Applied, thanks.

-- 
William <wmorgan-sup at masanjin.net>