From 8cea0a9d89d0886c68eba17edbcb2a288cffc8b0 Mon Sep 17 00:00:00 2001 From: "adrian.f.cole" Date: Mon, 21 Dec 2009 06:52:34 +0000 Subject: [PATCH] improved error check git-svn-id: http://jclouds.googlecode.com/svn/trunk@2496 3d8758e0-26b5-11de-8745-db77d3ebf521 --- .../java/org/jclouds/concurrent/FutureFunctionCallable.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/main/java/org/jclouds/concurrent/FutureFunctionCallable.java b/core/src/main/java/org/jclouds/concurrent/FutureFunctionCallable.java index 0a306bbe70..1441e923be 100755 --- a/core/src/main/java/org/jclouds/concurrent/FutureFunctionCallable.java +++ b/core/src/main/java/org/jclouds/concurrent/FutureFunctionCallable.java @@ -60,6 +60,8 @@ public class FutureFunctionCallable implements Callable { logger.debug("Processed intermediate result for: %s", input); return result; } catch (ExecutionException e) { + if (e.getCause() instanceof Error) + throw (Error) e.getCause(); throw (Exception) e.getCause(); } }