Author: spadkins
Date: Mon Jun  5 16:20:05 2006
New Revision: 6474

Modified:
   p5ee/trunk/App-Context/lib/App/Context/ClusterNode.pm

Log:
guard against error messages with embedded newlines

Modified: p5ee/trunk/App-Context/lib/App/Context/ClusterNode.pm
==============================================================================
--- p5ee/trunk/App-Context/lib/App/Context/ClusterNode.pm       (original)
+++ p5ee/trunk/App-Context/lib/App/Context/ClusterNode.pm       Mon Jun  5 
16:20:05 2006
@@ -170,8 +170,8 @@
     };
     if ($@) {
         $results = $@;
-        $results =~ s/\s*\n\s*/ /gs;  # we can't have multi-line result text
     }
+    $results =~ s/\s*\n\s*/ /gs;  # we can't have multi-line result text
     my $results_txt = $self->{rpc_serializer}->serialize($results);
     my $msg = "ASYNC-EVENT-RESULTS:$event->{event_token}:$results_txt";
     $self->send_message($self->{controller_host}, $self->{controller_port}, 
$msg);

Reply via email to