Files
Agent-n8n/n8n-n8n-1.109.2/packages/cli/src/errors/feature-not-licensed.error.ts
2025-09-08 04:48:28 +08:00

12 lines
410 B
TypeScript
Executable File

import type { LICENSE_FEATURES } from '@n8n/constants';
import { UserError } from 'n8n-workflow';
export class FeatureNotLicensedError extends UserError {
constructor(feature: (typeof LICENSE_FEATURES)[keyof typeof LICENSE_FEATURES]) {
super(
`Your license does not allow for ${feature}. To enable ${feature}, please upgrade to a license that supports this feature.`,
{ level: 'warning' },
);
}
}