From 676580df919eceff3e1a86a3ee141e38b3742aff Mon Sep 17 00:00:00 2001 From: fab2s Date: Thu, 19 Jan 2023 15:07:49 +0100 Subject: [PATCH] Do not wrapp exceptions --- src/NodalFlow.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/NodalFlow.php b/src/NodalFlow.php index 0975bd7..3f49e54 100644 --- a/src/NodalFlow.php +++ b/src/NodalFlow.php @@ -179,13 +179,8 @@ public function exec($param = null) } catch (Exception $e) { $this->flowStatus = new FlowStatus(FlowStatus::FLOW_EXCEPTION, $e); $this->flowEnd(); - if ($e instanceof NodalFlowException) { - throw $e; - } - throw new NodalFlowException('Flow execution failed', 0, $e, [ - 'nodeMap' => $this->getNodeMap(), - ]); + throw $e; } }