enhancement #I69QOB 动态创建组件时,脚本异常信息完善

This commit is contained in:
everywhere.z
2023-01-20 11:27:11 +08:00
parent 64f97ede93
commit 87e0e269df

View File

@@ -207,7 +207,7 @@ public class FlowBus {
} catch (Exception e) {
String error = StrUtil.format("component[{}] register error", StrUtil.isEmpty(name) ? nodeId : StrUtil.format("{}({})", nodeId, name));
LOG.error(e.getMessage());
throw new ComponentCannotRegisterException(error);
throw new ComponentCannotRegisterException(StrUtil.format("{} {}", error, e.getMessage()));
}
}