mirror of
https://github.com/n8n-io/n8n.git
synced 2026-10-22 04:21:32 +02:00
11 lines
359 B
TypeScript
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 } },
|
|
);
|
|
}
|
|
}
|