RuoYi
2022-04-23 784728f66376e337f8ce6ef3d22cbc98e37b52f4
src/main/java/com/ruoyi/common/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);