aboutsummaryrefslogtreecommitdiffstats
path: root/vespa-feed-client
diff options
context:
space:
mode:
authorJon Marius Venstad <venstad@gmail.com>2021-06-25 09:24:57 +0200
committerJon Marius Venstad <venstad@gmail.com>2021-06-25 09:24:57 +0200
commite39a7eb17d4e7f1fad56fa9ff5873ba4eadbc523 (patch)
tree1f3682261304b18f1b4074a55a07e2c03cb56106 /vespa-feed-client
parent373b66234f10a0bb4a34fe6032efcc9c49b0dd0a (diff)
Error response is not neceesarily a _parse_ exception
Diffstat (limited to 'vespa-feed-client')
-rw-r--r--vespa-feed-client/src/main/java/ai/vespa/feed/client/HttpFeedClient.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/vespa-feed-client/src/main/java/ai/vespa/feed/client/HttpFeedClient.java b/vespa-feed-client/src/main/java/ai/vespa/feed/client/HttpFeedClient.java
index 07084d15059..90b5707c8a0 100644
--- a/vespa-feed-client/src/main/java/ai/vespa/feed/client/HttpFeedClient.java
+++ b/vespa-feed-client/src/main/java/ai/vespa/feed/client/HttpFeedClient.java
@@ -136,7 +136,7 @@ class HttpFeedClient implements FeedClient {
}
if (outcome == Outcome.transportFailure) // Not a Vespa response, but a failure in the HTTP layer.
- throw new ResultParseException(
+ throw new FeedException(
documentId,
"Status " + response.code() + " executing '" + request + "': "
+ (message == null ? new String(response.body(), UTF_8) : message));