close #1791
close #1868
This commit is contained in:
Glavo
2022-11-26 21:43:03 +08:00
committed by GitHub
parent 8e28c2487f
commit a96fe298b8
2 changed files with 4 additions and 4 deletions

View File

@@ -709,7 +709,7 @@ public abstract class Task<T> {
@Override
public void execute() throws Exception {
if (isDependentsSucceeded() != (Task.this.getException() == null))
throw new AssertionError("When whenComplete succeeded, Task.exception must be null.");
throw new AssertionError("When whenComplete succeeded, Task.exception must be null.", Task.this.getException());
action.execute(Task.this.getException());