improved error check

git-svn-id: http://jclouds.googlecode.com/svn/trunk@2496 3d8758e0-26b5-11de-8745-db77d3ebf521
This commit is contained in:
adrian.f.cole 2009-12-21 06:52:34 +00:00
parent 49636c81b2
commit 8cea0a9d89
1 changed files with 2 additions and 0 deletions

View File

@ -60,6 +60,8 @@ public class FutureFunctionCallable<F, T> implements Callable<T> {
logger.debug("Processed intermediate result for: %s", input); logger.debug("Processed intermediate result for: %s", input);
return result; return result;
} catch (ExecutionException e) { } catch (ExecutionException e) {
if (e.getCause() instanceof Error)
throw (Error) e.getCause();
throw (Exception) e.getCause(); throw (Exception) e.getCause();
} }
} }