mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08:00
🐛 Return original error of sub-workflow to main-workflow #2757
This commit is contained in:
parent
be4000329b
commit
71f18de04e
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue