Skip to content

Commit

Permalink
Fix error message when a REST Client throws an exception
Browse files Browse the repository at this point in the history
  • Loading branch information
geoand committed Sep 4, 2024
1 parent 116c8a3 commit 8ca1409
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 8ca1409

Please sign in to comment.