mirror of https://github.com/apache/jclouds.git
improved error check
git-svn-id: http://jclouds.googlecode.com/svn/trunk@2496 3d8758e0-26b5-11de-8745-db77d3ebf521
This commit is contained in:
parent
49636c81b2
commit
8cea0a9d89
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue