aboutsummaryrefslogtreecommitdiffstats
path: root/http-utils
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2021-04-09 07:08:11 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2021-04-09 07:08:11 +0000
commit9d474973bd6060b95e222da88b2574e5ede63c43 (patch)
tree0729271db6ec00bd8e9b10ad072b264ba28b2031 /http-utils
parentc546d39161c331ecd35db2c84d3c63b0e259e162 (diff)
See what reveal what it is unhappy with.
Diffstat (limited to 'http-utils')
-rw-r--r--http-utils/src/main/java/ai/vespa/util/http/hc5/HttpToHttpsRoutePlanner.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/http-utils/src/main/java/ai/vespa/util/http/hc5/HttpToHttpsRoutePlanner.java b/http-utils/src/main/java/ai/vespa/util/http/hc5/HttpToHttpsRoutePlanner.java
index 672a2fd3918..b21fdcd8cbc 100644
--- a/http-utils/src/main/java/ai/vespa/util/http/hc5/HttpToHttpsRoutePlanner.java
+++ b/http-utils/src/main/java/ai/vespa/util/http/hc5/HttpToHttpsRoutePlanner.java
@@ -21,7 +21,7 @@ class HttpToHttpsRoutePlanner implements HttpRoutePlanner {
@Override
public HttpRoute determineRoute(HttpHost target, HttpContext context) throws HttpException {
if ( ! target.getSchemeName().equals("http"))
- throw new IllegalArgumentException("Scheme must be 'http' when using HttpToHttpsRoutePlanner");
+ throw new IllegalArgumentException("Scheme must be 'http' when using HttpToHttpsRoutePlanner, was '" + target.getSchemeName() + "'");
if (target.getPort() == -1)
throw new IllegalArgumentException("Port must be set when using HttpToHttpsRoutePlanner");