mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
11 lines
349 B
TypeScript
11 lines
349 B
TypeScript
|
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.`,
|
||
|
{ severity: 'warning', cause },
|
||
|
);
|
||
|
}
|
||
|
}
|