* [sup-talk] [PATCH] message.rb: Fix the usage of error_message and Chunk::Text.new.
@ 2008-01-08 1:40 Nicolas Pouillard
2008-01-08 6:36 ` William Morgan
0 siblings, 1 reply; 2+ messages in thread
From: Nicolas Pouillard @ 2008-01-08 1:40 UTC (permalink / raw)
---
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-01-08 6:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-08 1:40 [sup-talk] [PATCH] message.rb: Fix the usage of error_message and Chunk::Text.new Nicolas Pouillard
2008-01-08 6:36 ` William Morgan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox