fix: Improve filter component error handling (#8832)

This commit is contained in:
Elias Meire
2024-03-08 10:10:32 +01:00
committed by GitHub
parent 5d52bda865
commit 76fe960a76
7 changed files with 46 additions and 49 deletions

View File

@@ -83,7 +83,7 @@ export class FilterV2 implements INodeType {
set(
error,
'description',
"Try to change the operator, switch ON the option 'Less Strict Type Validation', or change the type with an expression",
"Try changing the type of comparison. Alternatively you can enable 'Less Strict Type Validation' in the options.",
);
}
set(error, 'context.itemIndex', itemIndex);

View File

@@ -83,7 +83,7 @@ export class IfV2 implements INodeType {
set(
error,
'description',
"Try to change the operator, switch ON the option 'Less Strict Type Validation', or change the type with an expression",
"Try changing the type of comparison. Alternatively you can enable 'Less Strict Type Validation' in the options.",
);
}
set(error, 'context.itemIndex', itemIndex);

View File

@@ -350,7 +350,7 @@ export class SwitchV3 implements INodeType {
} catch (error) {
if (!options.looseTypeValidation) {
error.description =
"Try to change the operator, switch ON the option 'Less Strict Type Validation', or change the type with an expression";
"Try changing the type of comparison. Alternatively you can enable 'Less Strict Type Validation' in the options.";
}
set(error, 'context.itemIndex', itemIndex);
set(error, 'node', this.getNode());