Remove redundant `toString()` call and trailing "in" from error message
The `formatErrorForReturnValue` method in `ServletInvocableHandlerMethod` previously included an unnecessary call to `toString()` and a dangling "in" at the end of the formatted string. Since the surrounding context already provides sufficient information, both the `toString()` call and the `" in"` suffix have been removed to improve clarity. No functional changes. Signed-off-by: wonyongg <111210881+wonyongg@users.noreply.github.com>
This commit is contained in:
parent
8dc9621ad7
commit
3f35c41f17
|
@ -189,8 +189,7 @@ public class ServletInvocableHandlerMethod extends InvocableHandlerMethod {
|
|||
|
||||
private String formatErrorForReturnValue(@Nullable Object returnValue) {
|
||||
return "Error handling return value=[" + returnValue + "]" +
|
||||
(returnValue != null ? ", type=" + returnValue.getClass().getName() : "") +
|
||||
" in " + toString();
|
||||
(returnValue != null ? ", type=" + returnValue.getClass().getName() : "");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue