commit | 85a2863d5bf65981d6ddbc6069a432a7fa7c31aa | [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 | a50219cc90aef94f27e83b6fe49481fd7bd214f1 [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;