mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor(core): Skip sending webhook activation errors to Sentry (no-changelog) (#7171)
This commit is contained in:
committed by
GitHub
parent
07d072c28f
commit
ebce6fe1b0
@@ -6,7 +6,7 @@ import type {
|
||||
WorkflowActivateMode,
|
||||
WorkflowExecuteMode,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import { WebhookPathAlreadyTakenError } from 'n8n-workflow';
|
||||
import * as NodeExecuteFunctions from 'n8n-core';
|
||||
|
||||
@Service()
|
||||
@@ -46,9 +46,7 @@ export class ActiveWebhooks {
|
||||
|
||||
// check that there is not a webhook already registered with that path/method
|
||||
if (this.webhookUrls[webhookKey] && !webhookData.webhookId) {
|
||||
throw new Error(
|
||||
`The URL path that the "${webhookData.node}" node uses is already taken. Please change it to something else.`,
|
||||
);
|
||||
throw new WebhookPathAlreadyTakenError(webhookData.node);
|
||||
}
|
||||
|
||||
if (this.workflowWebhooks[webhookData.workflowId] === undefined) {
|
||||
|
||||
Reference in New Issue
Block a user