Skip to content

Commit

Permalink
Do not wrapp exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
fab2s committed Jan 19, 2023
1 parent 0a1773a commit 676580d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/NodalFlow.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 676580d

Please sign in to comment.