Skip to content

Commit

Permalink
Merge pull request quarkusio#37653 from geoand/rest-client-no-readers
Browse files Browse the repository at this point in the history
Improve error message in REST Client when no matching readers found
  • Loading branch information
geoand authored Dec 11, 2023
2 parents f7ce12b + 2168a64 commit 6971f07
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 6971f07

Please sign in to comment.