diff --git a/src/main/java/io/quarkus/search/app/indexing/IndexingService.java b/src/main/java/io/quarkus/search/app/indexing/IndexingService.java index dde72e75..0fc5619e 100644 --- a/src/main/java/io/quarkus/search/app/indexing/IndexingService.java +++ b/src/main/java/io/quarkus/search/app/indexing/IndexingService.java @@ -37,6 +37,7 @@ import org.hibernate.search.backend.elasticsearch.ElasticsearchBackend; import org.hibernate.search.mapper.pojo.standalone.mapping.SearchMapping; +import org.hibernate.search.util.common.impl.Throwables; import org.elasticsearch.client.Request; import org.elasticsearch.client.RestClient; @@ -253,7 +254,7 @@ private void indexAll(FailureCollector failureCollector) { } catch (TimeoutException e) { future.cancel(true); } catch (ExecutionException e) { - e.getCause(); + throw Throwables.toRuntimeException(e.getCause()); } }