mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-02 07:01:30 -08:00
⚡ Small improvements
This commit is contained in:
parent
545547036a
commit
1f4b8f8999
|
@ -39,7 +39,7 @@ export class ActiveWebhooks {
|
||||||
|
|
||||||
//check that there is not a webhook already registed with that path/method
|
//check that there is not a webhook already registed with that path/method
|
||||||
if (this.webhookUrls[webhookKey] !== undefined) {
|
if (this.webhookUrls[webhookKey] !== undefined) {
|
||||||
throw new Error('There is test wenhook registered on that path');
|
throw new Error(`Test-Webhook can not be activated because another one with the same method "${webhookData.httpMethod}" and path "${webhookData.path}" is already active!`);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.workflowWebhooks[webhookData.workflowId] === undefined) {
|
if (this.workflowWebhooks[webhookData.workflowId] === undefined) {
|
||||||
|
|
|
@ -133,7 +133,7 @@ export class Webhook implements INodeType {
|
||||||
default: '',
|
default: '',
|
||||||
placeholder: 'webhook',
|
placeholder: 'webhook',
|
||||||
required: true,
|
required: true,
|
||||||
description: 'The path to listen to. Slashes("/") in the path are not allowed.',
|
description: 'The path to listen to.',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Response Code',
|
displayName: 'Response Code',
|
||||||
|
|
Loading…
Reference in a new issue