Skip to content

Commit 2168a64

Browse files
committed
Improve error message in REST Client when no matching readers found
This would have made my life easier when debugging quarkiverse/quarkus-langchain4j#125
1 parent 3c1d1a0 commit 2168a64

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientReaderInterceptorContextImpl.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ public Object proceed() throws IOException, WebApplicationException {
9191
}
9292
}
9393

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

0 commit comments

Comments
 (0)