mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 19:11:13 +00:00
⚡ Improve error reporting on expression error
This commit is contained in:
@@ -220,7 +220,13 @@ export function getNodeParameter(workflow: Workflow, runExecutionData: IRunExecu
|
|||||||
throw new Error(`Could not get parameter "${parameterName}"!`);
|
throw new Error(`Could not get parameter "${parameterName}"!`);
|
||||||
}
|
}
|
||||||
|
|
||||||
const returnData = workflow.getParameterValue(value, runExecutionData, runIndex, itemIndex, node.name, connectionInputData);
|
let returnData;
|
||||||
|
try {
|
||||||
|
returnData = workflow.getParameterValue(value, runExecutionData, runIndex, itemIndex, node.name, connectionInputData);
|
||||||
|
} catch (e) {
|
||||||
|
e.message += ` [Error in parameter: "${parameterName}"]`;
|
||||||
|
throw e;
|
||||||
|
}
|
||||||
|
|
||||||
return returnData;
|
return returnData;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user