Skip to content

Commit

Permalink
TimeoutException message improved (#835)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpstotz authored Jan 6, 2023
1 parent 6e7fb96 commit dcfa183
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/schmizz/concurrent/Promise.java
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public V retrieve(long timeout, TimeUnit unit)
throws T {
final V value = tryRetrieve(timeout, unit);
if (value == null)
throw chainer.chain(new TimeoutException("Timeout expired"));
throw chainer.chain(new TimeoutException("Timeout expired: " + timeout + " " + unit));
else
return value;
}
Expand Down

0 comments on commit dcfa183

Please sign in to comment.