Skip to content

Commit e6da8ed

Browse files
committed
Assume client java will always throw GraknClientException
1 parent 8348db8 commit e6da8ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GraknConsole.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ private <T> void printCancellableResult(Stream<T> results, Consumer<T> printFn)
258258
} catch (InterruptedException e) {
259259
e.printStackTrace();
260260
} catch (ExecutionException e) {
261-
throw (RuntimeException)e.getCause();
261+
throw (GraknClientException)e.getCause();
262262
} catch (CancellationException e) {
263263
Instant end = Instant.now();
264264
printer.info("answers: " + counter + ", duration: " + Duration.between(start, end).toMillis() + " ms");

0 commit comments

Comments
 (0)