mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
🐛 Return original error of sub-workflow to main-workflow #2757
This commit is contained in:
@@ -313,6 +313,13 @@ export class WorkflowRunnerProcess {
|
||||
await sendToParentProcess('finishExecution', { executionId, result });
|
||||
|
||||
const returnData = WorkflowHelpers.getDataLastExecutedNodeData(result);
|
||||
|
||||
if (returnData!.error) {
|
||||
const error = new Error(returnData!.error.message);
|
||||
error.stack = returnData!.error.stack;
|
||||
throw error;
|
||||
}
|
||||
|
||||
return returnData!.data!.main;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user