fixed to work with Compute Maps

git-svn-id: http://jclouds.googlecode.com/svn/trunk@1947 3d8758e0-26b5-11de-8745-db77d3ebf521
This commit is contained in:
adrian.f.cole 2009-10-07 21:08:42 +00:00
parent 557d28783f
commit e93a081d9e
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ public class Utils {
* @throws E * @throws E
*/ */
public static void rethrowIfRuntime(Exception e) { public static void rethrowIfRuntime(Exception e) {
if (e instanceof ExecutionException) { if (e instanceof ExecutionException || e instanceof ComputationException) {
Throwable nested = e.getCause(); Throwable nested = e.getCause();
if (nested instanceof Error) if (nested instanceof Error)
throw (Error) nested; throw (Error) nested;