diff options
author | Jon Marius Venstad <venstad@gmail.com> | 2021-06-25 09:24:57 +0200 |
---|---|---|
committer | Jon Marius Venstad <venstad@gmail.com> | 2021-06-25 09:24:57 +0200 |
commit | e39a7eb17d4e7f1fad56fa9ff5873ba4eadbc523 (patch) | |
tree | 1f3682261304b18f1b4074a55a07e2c03cb56106 /vespa-feed-client | |
parent | 373b66234f10a0bb4a34fe6032efcc9c49b0dd0a (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.java | 2 |
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)); |