commit | e4eadb59cca04493f04ce36ff461269131fe493b | [log] [tgz] |
---|---|---|
author | Derek Baum <dbaum@apache.org> | Thu Jul 23 22:12:54 2009 +0000 |
committer | Derek Baum <dbaum@apache.org> | Thu Jul 23 22:12:54 2009 +0000 |
tree | cf28f5cc06d5a9bd7648445f0f4f9fcb1477f8d6 | |
parent | 46b68a274bb8c392fff69820bfcc665dc857c361 [diff] |
fix for FELIX-1405 git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@797243 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/shell/Closure.java b/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/shell/Closure.java index 7e5c920..665728b 100644 --- a/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/shell/Closure.java +++ b/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/shell/Closure.java
@@ -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;