Skip to content

Commit b1a8667

Browse files
committed
error message on timeout includes units
1 parent 6075ac6 commit b1a8667

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)