Skip to content

Commit dcfa183

Browse files
authored
TimeoutException message improved (hierynomus#835)
1 parent 6e7fb96 commit dcfa183

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/net/schmizz/concurrent/Promise.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public V retrieve(long timeout, TimeUnit unit)
136136
throws T {
137137
final V value = tryRetrieve(timeout, unit);
138138
if (value == null)
139-
throw chainer.chain(new TimeoutException("Timeout expired"));
139+
throw chainer.chain(new TimeoutException("Timeout expired: " + timeout + " " + unit));
140140
else
141141
return value;
142142
}

0 commit comments

Comments
 (0)