mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(core): Improve model sub-nodes error handling (#11418)
This commit is contained in:
@@ -40,7 +40,6 @@ export class ExpressionError extends ExecutionBaseError {
|
||||
'causeDetailed',
|
||||
'descriptionTemplate',
|
||||
'descriptionKey',
|
||||
'functionality',
|
||||
'itemIndex',
|
||||
'messageTemplate',
|
||||
'nodeCause',
|
||||
@@ -48,7 +47,12 @@ export class ExpressionError extends ExecutionBaseError {
|
||||
'runIndex',
|
||||
'type',
|
||||
];
|
||||
|
||||
if (options !== undefined) {
|
||||
if (options.functionality !== undefined) {
|
||||
this.functionality = options.functionality;
|
||||
}
|
||||
|
||||
Object.keys(options as IDataObject).forEach((key) => {
|
||||
if (allowedKeys.includes(key)) {
|
||||
this.context[key] = (options as IDataObject)[key];
|
||||
|
||||
@@ -261,7 +261,7 @@ export class NodeApiError extends NodeError {
|
||||
messageMapping,
|
||||
);
|
||||
|
||||
if (functionality !== undefined) this.context.functionality = functionality;
|
||||
if (functionality !== undefined) this.functionality = functionality;
|
||||
if (runIndex !== undefined) this.context.runIndex = runIndex;
|
||||
if (itemIndex !== undefined) this.context.itemIndex = itemIndex;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user