mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-06-12 15:21:05 +08:00
enhancement #I5851Y 对启动初始化的报错进行区分下,现在报错粒度太粗
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user