Skip to content

Commit a96602a

Browse files
committed
Merge pull request AsyncHttpClient#135 from bgruber/master
Include units TimeoutException message
2 parents f0affeb + b1a8667 commit a96602a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

providers/netty/src/main/java/com/ning/http/client/providers/netty/NettyResponseFuture.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ public V get(long l, TimeUnit tu) throws InterruptedException, TimeoutException,
212212

213213
if (expired) {
214214
isCancelled.set(true);
215-
TimeoutException te = new TimeoutException(String.format("No response received after %s", l));
215+
TimeoutException te = new TimeoutException(String.format("No response received after %s %s", l, tu.name().toLowerCase()));
216216
if (!throwableCalled.getAndSet(true)) {
217217
try {
218218
asyncHandler.onThrowable(te);

0 commit comments

Comments
 (0)