Skip to content

Commit

Permalink
Improve error message in REST Client when no matching readers found
Browse files Browse the repository at this point in the history
 This would have made my life easier when
 debugging quarkiverse/quarkus-langchain4j#125

(cherry picked from commit 2168a64)
  • Loading branch information
geoand authored and gsmet committed Dec 11, 2023
1 parent 1645a29 commit c912ab6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ public Object proceed() throws IOException, WebApplicationException {
}
}

StringBuilder errorMessage = new StringBuilder("Response could not be mapped to type " + entityType);
StringBuilder errorMessage = new StringBuilder(
"Response could not be mapped to type " + entityType + " for response with media type " + mediaType);
if (!contextualizers.isEmpty()) {
var input = new MissingMessageBodyReaderErrorMessageContextualizer.Input() {
@Override
Expand Down

0 comments on commit c912ab6

Please sign in to comment.