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
  • Loading branch information
geoand committed Dec 11, 2023
1 parent 3c1d1a0 commit 39bc093
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ 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 39bc093

Please sign in to comment.