summaryrefslogtreecommitdiffstats
path: root/tenant-cd
diff options
context:
space:
mode:
authorJon Marius Venstad <venstad@gmail.com>2019-11-20 11:36:10 +0100
committerJon Marius Venstad <venstad@gmail.com>2019-11-20 11:36:10 +0100
commit25c5fcb4977d1ef803369cfa39c6914dc6c1a47d (patch)
tree29c20f80683541f45f17b739f91651ec2b2b8a38 /tenant-cd
parent39f1b89a7f5d35f2e15614fa9c7b5e4e11a36336 (diff)
Keep cause of IOException in test http client
Diffstat (limited to 'tenant-cd')
-rw-r--r--tenant-cd/src/main/java/ai/vespa/hosted/cd/http/HttpEndpoint.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/tenant-cd/src/main/java/ai/vespa/hosted/cd/http/HttpEndpoint.java b/tenant-cd/src/main/java/ai/vespa/hosted/cd/http/HttpEndpoint.java
index eb409ef0227..63bb9d68523 100644
--- a/tenant-cd/src/main/java/ai/vespa/hosted/cd/http/HttpEndpoint.java
+++ b/tenant-cd/src/main/java/ai/vespa/hosted/cd/http/HttpEndpoint.java
@@ -48,7 +48,7 @@ public class HttpEndpoint implements Endpoint {
return client.send(authenticator.authenticated(request).build(), handler);
}
catch (IOException | InterruptedException e) {
- throw new RuntimeException(request.build() + " failed: " + e);
+ throw new RuntimeException(request.build() + " failed: " + e.getMessage(), e);
}
}