TimeoutException message improved (#835)

This commit is contained in:
Jan S
2023-01-06 10:05:33 +01:00
committed by GitHub
parent 6e7fb96d07
commit dcfa1833d7

View File

@@ -136,7 +136,7 @@ public class Promise<V, T extends Throwable> {
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;
}