fix: fix typo in error messages when a property does not exist (#4310)

This commit is contained in:
Jonathan Bennetts 2023-02-23 08:33:43 +00:00 committed by GitHub
parent 4a209e1dd9
commit 3af3db160b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
45 changed files with 64 additions and 64 deletions

View file

@ -426,7 +426,7 @@ export class AwsRekognition implements INodeType {
if ((items[i].binary as IBinaryKeyData)[binaryPropertyName] === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${binaryPropertyName}" does not exists on item!`,
`Item has no binary property called "${binaryPropertyName}"`,
{ itemIndex: i },
);
}

View file

@ -847,7 +847,7 @@ export class AwsS3 implements INodeType {
if ((items[i].binary as IBinaryKeyData)[binaryPropertyName] === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${binaryPropertyName}" does not exists on item!`,
`Item has no binary property called "${binaryPropertyName}"`,
{ itemIndex: i },
);
}

View file

@ -128,7 +128,7 @@ export class AwsTextract implements INodeType {
if ((items[i].binary as IBinaryKeyData)[binaryProperty] === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${binaryProperty}" does not exists on item!`,
`Item has no binary property called "${binaryProperty}"`,
{ itemIndex: i },
);
}

View file

@ -25,7 +25,7 @@ export async function upload(this: IExecuteFunctions, index: number) {
if (items[index]!.binary![propertyNameUpload] === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${propertyNameUpload}" does not exists on item!`,
`Item has no binary property called "${propertyNameUpload}"`,
{ itemIndex: index },
);
}

View file

@ -25,7 +25,7 @@ export async function upload(this: IExecuteFunctions, index: number) {
if (items[index]!.binary![propertyNameUpload] === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${propertyNameUpload}" does not exists on item!`,
`Item has no binary property called "${propertyNameUpload}"`,
{ itemIndex: index },
);
}

View file

@ -288,7 +288,7 @@ export class Box implements INodeType {
if (items[i].binary[binaryPropertyName] === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${binaryPropertyName}" does not exists on item!`,
`Item has no binary property called "${binaryPropertyName}"`,
{ itemIndex: i },
);
}

View file

@ -83,7 +83,7 @@ export class CitrixAdc implements INodeType {
if (item.binary[binaryProperty] === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${binaryProperty}" does not exists on item!`,
`The binary data property "${binaryProperty}" does not exists on item!`,
);
}

View file

@ -205,7 +205,7 @@ export class Compression implements INodeType {
if (items[i].binary[binaryPropertyName] === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${binaryPropertyName}" does not exists on item!`,
`Item has no binary property called "${binaryPropertyName}"`,
{ itemIndex: i },
);
}
@ -276,7 +276,7 @@ export class Compression implements INodeType {
if (items[i].binary[binaryPropertyName] === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${binaryPropertyName}" does not exists on item!`,
`Item has no binary property called "${binaryPropertyName}"`,
{ itemIndex: i },
);
}

View file

@ -206,7 +206,7 @@ export class Cortex implements INodeType {
if (item.binary[binaryPropertyName] === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${binaryPropertyName}" does not exists on item!`,
`Item has no binary property called "${binaryPropertyName}"`,
{ itemIndex: i },
);
}
@ -352,7 +352,7 @@ export class Cortex implements INodeType {
if (item.binary[binaryPropertyName] === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property '${binaryPropertyName}' does not exists on item!`,
`Item has no binary property called "${binaryPropertyName}"`,
{ itemIndex: i },
);
}
@ -386,7 +386,7 @@ export class Cortex implements INodeType {
if (item.binary[binaryPropertyName] === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${binaryPropertyName}" does not exists on item!`,
`Item has no binary property called "${binaryPropertyName}"`,
{ itemIndex: i },
);
}

View file

@ -774,7 +774,7 @@ export class Dropbox implements INodeType {
if (item.binary[propertyNameUpload] === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${propertyNameUpload}" does not exists on item!`,
`Item has no binary property called "${propertyNameUpload}"`,
{ itemIndex: i },
);
}

View file

@ -386,7 +386,7 @@ export class FacebookGraphApi implements INodeType {
if (item.binary[binaryPropertyName] === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${binaryPropertyName}" does not exists on item!`,
`Item has no binary property called "${binaryPropertyName}"`,
{ itemIndex },
);
}

View file

@ -637,7 +637,7 @@ export class Ftp implements INodeType {
if (itemBinaryData === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${propertyNameUpload}" does not exists on item!`,
`Item has no binary property called "${propertyNameUpload}"`,
{ itemIndex: i },
);
}
@ -763,7 +763,7 @@ export class Ftp implements INodeType {
if (itemBinaryData === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${propertyNameUpload}" does not exists on item!`,
`Item has no binary property called "${propertyNameUpload}"`,
{ itemIndex: i },
);
}

View file

@ -1835,7 +1835,7 @@ export class Github implements INodeType {
if (item.binary[binaryPropertyName] === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${binaryPropertyName}" does not exists on item!`,
`Item has no binary property called "${binaryPropertyName}"`,
{ itemIndex: i },
);
}

View file

@ -1586,7 +1586,7 @@ export class Gitlab implements INodeType {
if (item.binary[binaryPropertyName] === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${binaryPropertyName}" does not exists on item!`,
`Item has no binary property called "${binaryPropertyName}"`,
{ itemIndex: i },
);
}

View file

@ -160,7 +160,7 @@ export const objectOperations: INodeProperties[] = [
if (item.binary[binaryPropertyName] === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${binaryPropertyName}" does not exist on item!`,
`Item has no binary property called "${binaryPropertyName}"`,
{ itemIndex: this.getItemIndex() },
);
}

View file

@ -2448,7 +2448,7 @@ export class GoogleDrive implements INodeType {
if (binary === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${propertyNameUpload}" does not exists on item!`,
`Item has no binary property called "${propertyNameUpload}"`,
{ itemIndex: i },
);
}

View file

@ -402,7 +402,7 @@ export class YouTube implements INodeType {
if (item.binary[binaryProperty] === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${binaryProperty}" does not exists on item!`,
`Item has no binary property called "${binaryProperty}"`,
{ itemIndex: i },
);
}
@ -867,7 +867,7 @@ export class YouTube implements INodeType {
if (binaryData === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${binaryProperty}" does not exists on item!`,
`Item has no binary property called "${binaryProperty}"`,
{ itemIndex: i },
);
}

View file

@ -749,7 +749,7 @@ export class HttpRequestV1 implements INodeType {
if (item.binary[binaryPropertyName] === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${binaryPropertyName}" does not exists on item!`,
`Item has no binary property called "${binaryPropertyName}"`,
{ itemIndex },
);
}
@ -787,7 +787,7 @@ export class HttpRequestV1 implements INodeType {
if (item.binary[binaryPropertyName] === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${binaryPropertyName}" does not exists on item!`,
`Item has no binary property called "${binaryPropertyName}"`,
);
}

View file

@ -787,7 +787,7 @@ export class HttpRequestV2 implements INodeType {
if (item.binary[binaryPropertyName] === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${binaryPropertyName}" does not exists on item!`,
`Item has no binary property called "${binaryPropertyName}"`,
{ itemIndex },
);
}
@ -825,7 +825,7 @@ export class HttpRequestV2 implements INodeType {
if (item.binary[binaryPropertyName] === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${binaryPropertyName}" does not exists on item!`,
`Item has no binary property called "${binaryPropertyName}"`,
);
}

View file

@ -86,7 +86,7 @@ export class HumanticAi implements INodeType {
if (binaryData === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${binaryPropertyName}" does not exists on item!`,
`Item has no binary property called "${binaryPropertyName}"`,
{ itemIndex: i },
);
}
@ -159,7 +159,7 @@ export class HumanticAi implements INodeType {
if (binaryData === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${binaryPropertyName}" does not exists on item!`,
`Item has no binary property called "${binaryPropertyName}"`,
{ itemIndex: i },
);
}

View file

@ -1069,7 +1069,7 @@ export class Jira implements INodeType {
if (binaryData === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${binaryPropertyName}" does not exists on item!`,
`Item has no binary property called "${binaryPropertyName}"`,
{ itemIndex: i },
);
}

View file

@ -758,7 +758,7 @@ export class Keap implements INodeType {
if (item[property as string] === undefined) {
throw new NodeOperationError(
this.getNode(),
`Binary data property "${property}" does not exists on item!`,
`Item has no binary property called "${property}"`,
{ itemIndex: i },
);
}
@ -840,7 +840,7 @@ export class Keap implements INodeType {
if (item[binaryPropertyName] === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${binaryPropertyName}" does not exists on item!`,
`Item has no binary property called "${binaryPropertyName}"`,
{ itemIndex: i },
);
}

View file

@ -106,7 +106,7 @@ export class Line implements INodeType {
if (items[i].binary[image.binaryProperty] === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${image.binaryProperty}" does not exists on item!`,
`Item has no binary property called "${image.binaryProperty}"`,
{ itemIndex: i },
);
}

View file

@ -150,7 +150,7 @@ export class LinkedIn implements INodeType {
if (item.binary[propertyNameUpload] === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${propertyNameUpload}" does not exists on item!`,
`Item has no binary property called "${propertyNameUpload}"`,
{ itemIndex: i },
);
}

View file

@ -198,7 +198,7 @@ export async function handleMatrixCall(
) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${binaryPropertyName}" does not exists on item!`,
`Item has no binary property called "${binaryPropertyName}"`,
);
}

View file

@ -206,7 +206,7 @@ export class MicrosoftOneDrive implements INodeType {
if (items[i].binary[binaryPropertyName] === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${binaryPropertyName}" does not exists on item!`,
`Item has no binary property called "${binaryPropertyName}"`,
{ itemIndex: i },
);
}

View file

@ -241,7 +241,7 @@ export async function binaryToAttachments(
if (binary[binaryPropertyName] === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${binaryPropertyName}" does not exists on item!`,
`Item has no binary property called "${binaryPropertyName}"`,
{ itemIndex: i },
);
}

View file

@ -641,7 +641,7 @@ export class MicrosoftOutlook implements INodeType {
if (items[i].binary[binaryPropertyName] === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${binaryPropertyName}" does not exists on item!`,
`Item has no binary property called "${binaryPropertyName}"`,
{ itemIndex: i },
);
}

View file

@ -178,7 +178,7 @@ export class Mindee implements INodeType {
if (binaryData === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${binaryPropertyName}" does not exists on item!`,
`Item has no binary property called "${binaryPropertyName}"`,
);
}
if (version === 1) {
@ -249,7 +249,7 @@ export class Mindee implements INodeType {
if (binaryData === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${binaryPropertyName}" does not exists on item!`,
`Item has no binary property called "${binaryPropertyName}"`,
);
}
if (version === 1) {

View file

@ -915,7 +915,7 @@ export class NextCloud implements INodeType {
if (item.binary[propertyNameUpload] === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${propertyNameUpload}" does not exists on item!`,
`Item has no binary property called "${propertyNameUpload}"`,
{ itemIndex: i },
);
}

View file

@ -273,7 +273,7 @@ export class NocoDB implements INodeType {
if (binaryPropertyName && !items[i].binary![binaryPropertyName]) {
throw new NodeOperationError(
this.getNode(),
`Binary property ${binaryPropertyName} does not exist on item!`,
`Item has no binary property called "${binaryPropertyName}"`,
{ itemIndex: i },
);
}
@ -583,7 +583,7 @@ export class NocoDB implements INodeType {
if (binaryPropertyName && !items[i].binary![binaryPropertyName]) {
throw new NodeOperationError(
this.getNode(),
`Binary property ${binaryPropertyName} does not exist on item!`,
`Item has no binary property called "${binaryPropertyName}"`,
{ itemIndex: i },
);
}

View file

@ -4350,7 +4350,7 @@ export class Pipedrive implements INodeType {
if (item.binary[binaryPropertyName] === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${binaryPropertyName}" does not exists on item!`,
`Item has no binary property called "${binaryPropertyName}"`,
{ itemIndex: i },
);
}

View file

@ -416,7 +416,7 @@ export class Pushbullet implements INodeType {
if (items[i].binary[binaryPropertyName] === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${binaryPropertyName}" does not exists on item!`,
`Item has no binary property called "${binaryPropertyName}"`,
{ itemIndex: i },
);
}

View file

@ -353,7 +353,7 @@ export class Pushover implements INodeType {
if (binaryData === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${binaryPropertyName}" does not exists on item!`,
`Item has no binary property called "${binaryPropertyName}"`,
{ itemIndex: i },
);
}

View file

@ -244,7 +244,7 @@ export class RespondToWebhook implements INodeType {
if (binaryData === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${responseBinaryPropertyName}" does not exists on item!`,
`Item has no binary property called "${responseBinaryPropertyName}"`,
);
}

View file

@ -846,7 +846,7 @@ export class S3 implements INodeType {
if ((items[i].binary as IBinaryKeyData)[binaryPropertyName] === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${binaryPropertyName}" does not exists on item!`,
`Item has no binary property called "${binaryPropertyName}"`,
{ itemIndex: i },
);
}

View file

@ -91,7 +91,7 @@ export namespace SendInBlueNode {
if (item.binary![binaryPropertyAttachmentName] === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property “${binaryPropertyAttachmentName}” exists on item!`,
`Item has no binary property called "${binaryPropertyName}"`,
);
}

View file

@ -612,7 +612,7 @@ export class ServiceNow implements INodeType {
} else {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${inputDataFieldName}" does not exists on item!`,
`Item has no binary property called "${inputDataFieldName}"`,
{ itemIndex: i },
);
}

View file

@ -1102,7 +1102,7 @@ export class SlackV1 implements INodeType {
) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${binaryPropertyName}" does not exists on item!`,
`Item has no binary property called "${binaryPropertyName}"`,
{ itemIndex: i },
);
}

View file

@ -1068,7 +1068,7 @@ export class SlackV2 implements INodeType {
) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${binaryPropertyName}" does not exists on item!`,
`Item has no binary property called "${binaryPropertyName}"`,
{ itemIndex: i },
);
}

View file

@ -356,7 +356,7 @@ export class Ssh implements INodeType {
if (item.binary[propertyNameUpload] === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${propertyNameUpload}" does not exists on item!`,
`Item has no binary property called "${propertyNameUpload}"`,
{ itemIndex: i },
);
}

View file

@ -442,7 +442,7 @@ export class TheHive implements INodeType {
if (item.binary[binaryPropertyName] === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property '${binaryPropertyName}' does not exists on item!`,
`Item has no binary property called "${binaryPropertyName}"`,
{ itemIndex: i },
);
}
@ -719,7 +719,7 @@ export class TheHive implements INodeType {
if (item.binary[binaryPropertyName] === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property '${binaryPropertyName}' does not exists on item!`,
`Item has no binary property called "${binaryPropertyName}"`,
{ itemIndex: i },
);
}
@ -914,7 +914,7 @@ export class TheHive implements INodeType {
if (item.binary[binaryPropertyName] === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property '${binaryPropertyName}' does not exists on item!`,
`Item has no binary property called "${binaryPropertyName}"`,
{ itemIndex: i },
);
}
@ -1770,7 +1770,7 @@ export class TheHive implements INodeType {
if (item.binary[binaryPropertyName] === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property '${binaryPropertyName}' does not exists on item!`,
`Item has no binary property called "${binaryPropertyName}"`,
{ itemIndex: i },
);
}

View file

@ -261,7 +261,7 @@ export class Twist implements INodeType {
if (binaryData === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${binaryProperty}" does not exists on item!`,
`Item has no binary property called "${binaryProperty}"`,
{ itemIndex: i },
);
}
@ -370,7 +370,7 @@ export class Twist implements INodeType {
if (binaryData === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${binaryProperty}" does not exists on item!`,
`Item has no binary property called "${binaryProperty}"`,
{ itemIndex: i },
);
}
@ -449,7 +449,7 @@ export class Twist implements INodeType {
if (binaryData === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${binaryProperty}" does not exists on item!`,
`Item has no binary property called "${binaryProperty}"`,
{ itemIndex: i },
);
}
@ -574,7 +574,7 @@ export class Twist implements INodeType {
if (binaryData === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${binaryProperty}" does not exists on item!`,
`Item has no binary property called "${binaryProperty}"`,
{ itemIndex: i },
);
}
@ -658,7 +658,7 @@ export class Twist implements INodeType {
if (binaryData === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${binaryProperty}" does not exists on item!`,
`Item has no binary property called "${binaryProperty}"`,
{ itemIndex: i },
);
}
@ -766,7 +766,7 @@ export class Twist implements INodeType {
if (binaryData === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${binaryProperty}" does not exists on item!`,
`Item has no binary property called "${binaryProperty}"`,
{ itemIndex: i },
);
}

View file

@ -239,7 +239,7 @@ export class Xml implements INodeType {
if (item.json[dataPropertyName] === undefined) {
throw new NodeOperationError(
this.getNode(),
`No json property "${dataPropertyName}" does not exists on item!`,
`Item has no JSON property called "${dataPropertyName}"`,
{ itemIndex },
);
}

View file

@ -200,7 +200,7 @@ export class Zulip implements INodeType {
if (items[i].binary[binaryProperty] === undefined) {
throw new NodeOperationError(
this.getNode(),
`No binary data property "${binaryProperty}" does not exists on item!`,
`Item has no binary property called "${binaryProperty}"`,
{ itemIndex: i },
);
}