Skip to content

Commit

Permalink
Merge pull request #43010 from geoand/rest-client-message-polish
Browse files Browse the repository at this point in the history
Fix error message when a REST Client throws an exception
  • Loading branch information
geoand authored Sep 4, 2024
2 parents 28f47d3 + 8dda8f7 commit 3c731e2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ protected Throwable unwrapException(Throwable t) {
var message = webApplicationException.getMessage();
var invokedMethodObject = properties.get(INVOKED_METHOD_PROP);
if ((invokedMethodObject instanceof Method invokedMethod) && !disableContextualErrorMessages) {
message = "Received: '" + message + "' when invoking: Rest Client method: '"
message = "Received: '" + message + "' when invoking REST Client method: '"
+ invokedMethod.getDeclaringClass().getName() + "#"
+ invokedMethod.getName() + "'";
}
Expand Down

0 comments on commit 3c731e2

Please sign in to comment.