From d9257392d809c4f101972cee13f7d2e42b1d5ad7 Mon Sep 17 00:00:00 2001 From: "everywhere.z" Date: Wed, 7 Dec 2022 21:01:39 +0800 Subject: [PATCH] =?UTF-8?q?enhancement=20#I64SY6=20=E6=9C=9F=E6=9C=9B?= =?UTF-8?q?=E8=83=BD=E5=AE=8C=E5=96=84=E9=94=99=E8=AF=AF=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E7=9A=84=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../liteflow/flow/element/condition/SwitchCondition.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/liteflow-core/src/main/java/com/yomahub/liteflow/flow/element/condition/SwitchCondition.java b/liteflow-core/src/main/java/com/yomahub/liteflow/flow/element/condition/SwitchCondition.java index 784d167d8..082880070 100644 --- a/liteflow-core/src/main/java/com/yomahub/liteflow/flow/element/condition/SwitchCondition.java +++ b/liteflow-core/src/main/java/com/yomahub/liteflow/flow/element/condition/SwitchCondition.java @@ -73,13 +73,15 @@ public class SwitchCondition extends Condition{ if (ObjectUtil.isNotNull(targetExecutor)) { //switch的目标不能是Pre节点或者Finally节点 if (targetExecutor instanceof PreCondition || targetExecutor instanceof FinallyCondition){ - String errorInfo = StrUtil.format("[{}]:switch component[{}] error, switch target node cannot be pre or finally", slot.getRequestId(), this.getSwitchNode().getInstance().getDisplayName()); + String errorInfo = StrUtil.format("[{}]:switch component[{}] error, switch target node cannot be pre or finally", + slot.getRequestId(), this.getSwitchNode().getInstance().getDisplayName()); throw new SwitchTargetCannotBePreOrFinallyException(errorInfo); } targetExecutor.setCurrChainId(this.getCurrChainId()); targetExecutor.execute(slotIndex); }else{ - String errorInfo = StrUtil.format("[{}]:no target node find for the component[{}]", slot.getRequestId(), this.getSwitchNode().getInstance().getDisplayName()); + String errorInfo = StrUtil.format("[{}]:no target node find for the component[{}],target str is [{}]", + slot.getRequestId(), this.getSwitchNode().getInstance().getDisplayName(), targetId); throw new NoSwitchTargetNodeException(errorInfo); } }