This commit is contained in:
Gary Gregory 2022-11-04 16:21:54 -04:00
parent b01d56ddea
commit 8d6e743748
1 changed files with 2 additions and 3 deletions

View File

@ -238,9 +238,8 @@ public class ExceptionUtils {
* @since 2.2 * @since 2.2
*/ */
public static String getRootCauseMessage(final Throwable throwable) { public static String getRootCauseMessage(final Throwable throwable) {
Throwable root = getRootCause(throwable); final Throwable root = getRootCause(throwable);
root = root == null ? throwable : root; return getMessage(root == null ? throwable : root);
return getMessage(root);
} }
/** /**