RuoYi
2026-01-06 e942847b899e316efa1fa463b9c38c5c688b3ae7
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/ExceptionUtil.java
@@ -18,11 +18,10 @@
    {
        StringWriter sw = new StringWriter();
        e.printStackTrace(new PrintWriter(sw, true));
        String str = sw.toString();
        return str;
        return sw.toString();
    }
    public static String getRootErrorMseeage(Exception e)
    public static String getRootErrorMessage(Exception e)
    {
        Throwable root = ExceptionUtils.getRootCause(e);
        root = (root == null ? e : root);