enhancement #I5851Y 对启动初始化的报错进行区分下,现在报错粒度太粗

This commit is contained in:
bryan31
2022-05-29 18:12:09 +08:00
parent 61db42968d
commit 86f6ae4df7

View File

@@ -132,8 +132,8 @@ public class FlowExecutor {
LOG.error(e.getMessage());
throw e;
} catch (Exception e) {
String errorMsg = StrUtil.format("init flow executor cause error,cannot find the parse for path {}", path);
LOG.error(errorMsg, e);
String errorMsg = StrUtil.format("init flow executor cause error for path {},reason:{}", path, e.getMessage());
LOG.error(e.getMessage(), e);
throw new FlowExecutorNotInitException(errorMsg);
}
}
@@ -158,8 +158,8 @@ public class FlowExecutor {
LOG.error(e.getMessage());
throw e;
} catch (Exception e) {
String errorMsg = StrUtil.format("init flow executor cause error,can not parse rule file {}", rulePathList);
LOG.error(errorMsg, e);
String errorMsg = StrUtil.format("init flow executor cause error for path {},reason: {}", rulePathList, e.getMessage());
LOG.error(e.getMessage(), e);
throw new FlowExecutorNotInitException(errorMsg);
}
}