fixed two other rest integ tests

Original commit: elastic/x-pack-elasticsearch@7fe318e2a8
This commit is contained in:
Martijn van Groningen 2016-12-27 17:37:54 +01:00
parent a2aaef90b7
commit b409b72629
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ public class FixBlockingClientOperations {
Thread.currentThread().interrupt();
}
if (exception.get() != null) {
throw new RuntimeException(exception.get());
throw org.elasticsearch.ExceptionsHelper.convertToElastic(exception.get());
} else {
return response.get();
}