From b413e38b082534963b668c1bf85af927b1fd57f3 Mon Sep 17 00:00:00 2001 From: Camden Phalen Date: Wed, 21 Aug 2024 12:21:23 -0400 Subject: [PATCH] Update error copy --- packages/cli/commands/cms/convertFields.js | 2 +- packages/cli/lang/en.lyaml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/cli/commands/cms/convertFields.js b/packages/cli/commands/cms/convertFields.js index f1cfa8181..32a954c09 100644 --- a/packages/cli/commands/cms/convertFields.js +++ b/packages/cli/commands/cms/convertFields.js @@ -93,7 +93,7 @@ exports.builder = yargs => { yargs.option('src', { describe: i18n(`${i18nKey}.positionals.src.describe`), type: 'string', - demandOption: true, + demandOption: i18n(`${i18nKey}.errors.missingSrc`), }); yargs.option('fieldOptions', { describe: i18n(`${i18nKey}.options.options.describe`), diff --git a/packages/cli/lang/en.lyaml b/packages/cli/lang/en.lyaml index 8c160315f..5614fc1f9 100644 --- a/packages/cli/lang/en.lyaml +++ b/packages/cli/lang/en.lyaml @@ -969,7 +969,9 @@ en: options: describe: "Options to pass to javascript fields files" errors: - invalidPath: "The path \"{{ path }}\" specified in the \"--src\" flag is not a path to a file or folder" + invalidPath: "The path \"{{ path }}\" specified in the \"--src\" flag is not a path to a file or directory" + missingSrc: "Please specify the path to your javascript fields file or directory with the --src flag." + lib: process: exitDebug: "Attempting to gracefully exit. Triggered by {{ signal }}"