felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From db...@apache.org
Subject svn commit: r797243 - /felix/trunk/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/shell/Closure.java
Date Thu, 23 Jul 2009 22:12:55 GMT
Author: dbaum
Date: Thu Jul 23 22:12:54 2009
New Revision: 797243

URL: http://svn.apache.org/viewvc?rev=797243&view=rev
Log:
fix for FELIX-1405

Modified:
    felix/trunk/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/shell/Closure.java

Modified: felix/trunk/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/shell/Closure.java
URL: http://svn.apache.org/viewvc/felix/trunk/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/shell/Closure.java?rev=797243&r1=797242&r2=797243&view=diff
==============================================================================
--- felix/trunk/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/shell/Closure.java
(original)
+++ felix/trunk/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/shell/Closure.java
Thu Jul 23 22:12:54 2009
@@ -90,6 +90,16 @@
         }
 
         Pipe last = pipes.get(pipes.size() - 1);
+
+        for (Pipe pipe : pipes)
+        {
+            if (pipe.exception != null)
+            {
+                // can't throw exception, as result is defined by last pipe
+                System.err.println("pipe: " + pipe.exception);
+            }
+        }
+
         if (last.exception != null)
         {
             throw last.exception;



Mime
View raw message