Log exceptions thrown by BufferedRequest tasks

This commit is contained in:
Luck 2019-01-05 23:06:57 +00:00
parent 6fc2321fad
commit c396323308
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -169,6 +169,7 @@ public abstract class BufferedRequest<T> {
R result = Processor.this.supplier.get();
Processor.this.future.complete(result);
} catch (Exception e) {
new RuntimeException("Processor " + Processor.this.supplier + " threw an exception whilst computing a result", e).printStackTrace();
Processor.this.future.completeExceptionally(e);
}