n8n/packages/workflow/src/errors/webhook-taken.error.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
346 B
TypeScript
Raw Normal View History

import { WorkflowActivationError } from './workflow-activation.error';
export class WebhookPathTakenError extends WorkflowActivationError {
constructor(nodeName: string, cause?: Error) {
super(
`The URL path that the "${nodeName}" node uses is already taken. Please change it to something else.`,
2023-12-07 07:57:02 -08:00
{ level: 'warning', cause },
);
}
}