mirror of
https://github.com/n8n-io/n8n.git
synced 2026-06-01 01:07:04 +02:00
12 lines
432 B
TypeScript
12 lines
432 B
TypeScript
import { UserError } from 'n8n-workflow';
|
|
|
|
export class ModuleConfusionError extends UserError {
|
|
constructor(moduleNames: string[]) {
|
|
const modules = moduleNames.length > 1 ? 'modules' : 'a module';
|
|
|
|
super(
|
|
`Found ${modules} listed in both \`N8N_ENABLED_MODULES\` and \`N8N_DISABLED_MODULES\`: ${moduleNames.join(', ')}. Please review your environment variables, as a module cannot be both enabled and disabled.`,
|
|
);
|
|
}
|
|
}
|