diff --git a/src/generator/template-registry.ts b/src/generator/template-registry.ts index 770555b..7bd7882 100644 --- a/src/generator/template-registry.ts +++ b/src/generator/template-registry.ts @@ -52,7 +52,7 @@ export function getTemplate(templateId: string): TemplateMetadata { if (!template) { throw new ValidationCliError( - `Unknown template '${templateId}'. Supported templates: ${TEMPLATE_IDS.join(', ')}.`, + `The requested template is not supported. Supported templates: ${TEMPLATE_IDS.join(', ')}.`, ); } diff --git a/src/generator/template-sources.ts b/src/generator/template-sources.ts index 7ea8446..223b7b8 100644 --- a/src/generator/template-sources.ts +++ b/src/generator/template-sources.ts @@ -16,7 +16,7 @@ export function resolveBundledTemplateRoot(templateId: string): string { if (directory === undefined) { throw new ValidationCliError( - `Template '${templateId}' is registered but is not bundled in this CLI version yet.`, + 'The selected template is not available in this CLI version.', ); } diff --git a/src/generator/validation.ts b/src/generator/validation.ts index a397ead..b0f2af6 100644 --- a/src/generator/validation.ts +++ b/src/generator/validation.ts @@ -110,7 +110,7 @@ export function planProjectDestination( if (fileSystem.exists(destination)) { if (!fileSystem.isDirectory(destination)) { throw new ValidationCliError( - `Destination already exists and is not a directory: ${destination}`, + `Destination already exists and is not a directory: ${destination}.`, ); }