mirror of
https://github.com/hierynomus/sshj.git
synced 2025-12-06 07:10:53 +03:00
TimeoutException message improved (#835)
This commit is contained in:
@@ -136,7 +136,7 @@ public class Promise<V, T extends Throwable> {
|
|||||||
throws T {
|
throws T {
|
||||||
final V value = tryRetrieve(timeout, unit);
|
final V value = tryRetrieve(timeout, unit);
|
||||||
if (value == null)
|
if (value == null)
|
||||||
throw chainer.chain(new TimeoutException("Timeout expired"));
|
throw chainer.chain(new TimeoutException("Timeout expired: " + timeout + " " + unit));
|
||||||
else
|
else
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user