Skip to content

Commit

Permalink
Test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nbauernfeind committed Mar 5, 2024
1 parent a03abe4 commit 2a7b16e
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,14 @@ public Class<?> compile(@NotNull final QueryCompilerRequest request) {
compile(request, resolver);
try {
return resolver.getFuture().get();
} catch (InterruptedException | ExecutionException e) {
throw new UncheckedDeephavenException("Could not compile class", e);
} catch (ExecutionException e) {
Throwable cause = e.getCause();
if (cause instanceof RuntimeException) {
throw (RuntimeException) cause;
}
throw new UncheckedDeephavenException("Error while compiling class", cause);
} catch (InterruptedException e) {
throw new UncheckedDeephavenException("Interrupted while compile class", e);
}
}

Expand Down

0 comments on commit 2a7b16e

Please sign in to comment.