Skip to content

Commit

Permalink
Update error copy
Browse files Browse the repository at this point in the history
  • Loading branch information
camden11 committed Aug 21, 2024
1 parent c1abd62 commit b413e38
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/cli/commands/cms/convertFields.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`),
Expand Down
4 changes: 3 additions & 1 deletion packages/cli/lang/en.lyaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down

0 comments on commit b413e38

Please sign in to comment.