mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
⚡ add error message for dynamic webhook-test
This commit is contained in:
parent
3ec6552845
commit
b3bf6f04b8
|
@ -39,6 +39,9 @@ export class ActiveWebhooks {
|
|||
|
||||
//check that there is not a webhook already registed with that path/method
|
||||
if (this.webhookUrls[webhookKey] !== undefined) {
|
||||
if (webhookData.webhookId) {
|
||||
throw new Error(`Test-Webhook "${webhookData.node}" can not be activated! Please duplicate "${webhookData.node}" and delete the currently existing one.`);
|
||||
}
|
||||
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!`);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue