From 8ca140989e6c6f6ce769edf98aa825df796359d4 Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Wed, 4 Sep 2024 13:44:57 +0300 Subject: [PATCH] Fix error message when a REST Client throws an exception --- .../resteasy/reactive/client/impl/RestClientRequestContext.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/RestClientRequestContext.java b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/RestClientRequestContext.java index 89002b184d949a..e98dde54c3a68e 100644 --- a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/RestClientRequestContext.java +++ b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/RestClientRequestContext.java @@ -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() + "'"; }