n8n/packages/cli/src/errors/single-webhook-trigger.error.ts
2025-12-04 18:20:13 +01:00

11 lines
359 B
TypeScript

import { UserError } from 'n8n-workflow';
export class SingleWebhookTriggerError extends UserError {
constructor(triggerName: string) {
super(
`Because of limitations in ${triggerName}, n8n can't listen for test executions at the same time as listening for production ones. Unpublish the workflow to execute.`,
{ extra: { triggerName } },
);
}
}