Add stacktrace to the IllegalStateException which is thrown if a Promise was notified before
This commit is contained in:
parent
fd3f923b52
commit
8d7f1e2820
@ -357,7 +357,7 @@ public class DefaultPromise implements Promise {
|
||||
notifyListeners();
|
||||
return this;
|
||||
}
|
||||
throw new IllegalStateException();
|
||||
throw new IllegalStateException("Promise was completed before");
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -375,7 +375,7 @@ public class DefaultPromise implements Promise {
|
||||
notifyListeners();
|
||||
return this;
|
||||
}
|
||||
throw new IllegalStateException();
|
||||
throw new IllegalStateException("Promise was completed before", cause);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user