Skip to content

Commit b4f6643

Browse files
committed
Make exceptions thrown by promise.onError() suppress the original exception.
1 parent 2311e86 commit b4f6643

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ratpack-core/src/main/java/ratpack/exec/internal/DefaultPromise.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ public void error(Throwable throwable) {
9090
errorHandler.execute(throwable);
9191
super.complete();
9292
} catch (Throwable e) {
93+
e.addSuppressed(throwable);
9394
super.error(e);
9495
}
9596
}

0 commit comments

Comments
 (0)