diff --git a/packages/cli/src/eventbus/message-event-bus-destination/message-event-bus-destination-webhook.ee.ts b/packages/cli/src/eventbus/message-event-bus-destination/message-event-bus-destination-webhook.ee.ts index f6a35f4329..a5373d0cc5 100644 --- a/packages/cli/src/eventbus/message-event-bus-destination/message-event-bus-destination-webhook.ee.ts +++ b/packages/cli/src/eventbus/message-event-bus-destination/message-event-bus-destination-webhook.ee.ts @@ -180,7 +180,7 @@ export class MessageEventBusDestinationWebhook try { JSON.parse(this.jsonQuery); } catch { - this.logger.error('JSON parameter need to be an valid JSON'); + this.logger.error('JSON parameter needs to be valid JSON'); } this.axiosRequestOptions.params = jsonParse(this.jsonQuery); } @@ -198,7 +198,7 @@ export class MessageEventBusDestinationWebhook try { JSON.parse(this.jsonHeaders); } catch { - this.logger.error('JSON parameter need to be an valid JSON'); + this.logger.error('JSON parameter needs to be valid JSON'); } this.axiosRequestOptions.headers = jsonParse(this.jsonHeaders); } diff --git a/packages/nodes-base/nodes/HttpRequest/V3/HttpRequestV3.node.ts b/packages/nodes-base/nodes/HttpRequest/V3/HttpRequestV3.node.ts index 682b83cd1d..7ef4b5b3b6 100644 --- a/packages/nodes-base/nodes/HttpRequest/V3/HttpRequestV3.node.ts +++ b/packages/nodes-base/nodes/HttpRequest/V3/HttpRequestV3.node.ts @@ -340,7 +340,7 @@ export class HttpRequestV3 implements INodeType { } catch { throw new NodeOperationError( this.getNode(), - 'JSON parameter need to be an valid JSON', + 'JSON parameter needs to be valid JSON', { itemIndex, }, @@ -404,13 +404,9 @@ export class HttpRequestV3 implements INodeType { try { JSON.parse(jsonQueryParameter); } catch { - throw new NodeOperationError( - this.getNode(), - 'JSON parameter need to be an valid JSON', - { - itemIndex, - }, - ); + throw new NodeOperationError(this.getNode(), 'JSON parameter needs to be valid JSON', { + itemIndex, + }); } requestOptions.qs = jsonParse(jsonQueryParameter); @@ -430,13 +426,9 @@ export class HttpRequestV3 implements INodeType { try { JSON.parse(jsonHeadersParameter); } catch { - throw new NodeOperationError( - this.getNode(), - 'JSON parameter need to be an valid JSON', - { - itemIndex, - }, - ); + throw new NodeOperationError(this.getNode(), 'JSON parameter needs to be valid JSON', { + itemIndex, + }); } additionalHeaders = jsonParse(jsonHeadersParameter);