未验证 提交 ff4e3dd9 编写于 作者: S Skylot

fix: show cause exception if class codegen failed (#1258)

上级 94b00b4e
......@@ -67,10 +67,14 @@ public final class ProcessClass {
}
return code;
}
return null;
} catch (Throwable e) {
if (codegen) {
throw e;
}
cls.addError("Class process error: " + e.getClass().getSimpleName(), e);
return null;
}
return null;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册