From dcfa1833d7438ae3fbe79318285fe100a7c598be Mon Sep 17 00:00:00 2001 From: Jan S Date: Fri, 6 Jan 2023 10:05:33 +0100 Subject: [PATCH] TimeoutException message improved (#835) --- src/main/java/net/schmizz/concurrent/Promise.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/schmizz/concurrent/Promise.java b/src/main/java/net/schmizz/concurrent/Promise.java index 06b4a835..5b8372ca 100644 --- a/src/main/java/net/schmizz/concurrent/Promise.java +++ b/src/main/java/net/schmizz/concurrent/Promise.java @@ -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; }