mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix: Do not show [object Object] in error message when validating type (no-changelog) (#9591)
This commit is contained in:
@@ -9,6 +9,7 @@ import {
|
||||
ApplicationError,
|
||||
NodeOperationError,
|
||||
deepCopy,
|
||||
getValueDescription,
|
||||
jsonParse,
|
||||
validateFieldType,
|
||||
} from 'n8n-workflow';
|
||||
@@ -184,7 +185,7 @@ export const validateEntry = (
|
||||
} else {
|
||||
throw new NodeOperationError(
|
||||
node,
|
||||
`'${name}' expects a ${type} but we got '${String(value)}' [item ${itemIndex}]`,
|
||||
`'${name}' expects a ${type} but we got ${getValueDescription(value)} [item ${itemIndex}]`,
|
||||
{ description },
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user