针对找不到.idea路径的情况记录异常信息,便于分析

This commit is contained in:
makejava 2020-08-15 10:45:42 +08:00
parent 19f5412b9f
commit cadc87404b
1 changed files with 2 additions and 0 deletions

View File

@ -392,6 +392,8 @@ public class TableInfoServiceImpl implements TableInfoService {
VirtualFile ideaDir = baseDir.findChild(".idea");
if (ideaDir == null) {
Messages.showInfoMessage(".idea路径获取失败", MsgValue.TITLE_INFO);
String errorMsg = String.format("baseDir:%s, not found .idea child directory", baseDir.getPath());
ExceptionUtil.rethrow(new IllegalStateException(errorMsg));
return null;
}
// 查找或创建EasyCodeConfig路径