Skip to content

Commit

Permalink
Improve error message string
Browse files Browse the repository at this point in the history
  • Loading branch information
dmbrooke committed Sep 29, 2023
1 parent b9f374b commit 2529b3e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const main = () => {
} else {
handleErrors(
new InvalidProjectDirectory(
'Current working directory is either not empty or not an npm project (no package.json found). Please try again in an empty directory.'
'Current working directory is either not empty or not an npm project (no package.json found). Please try again in a valid project (see [When to Use the Coveo CLI](https://docs.coveo.com/en/cli/#when-to-use-the-coveo-cli).'
)
);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/atomic/create-atomic-component/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ const ensureDirectoryValidity = () => {
if (cwdFiles.length > 0 && !hasPackageInCwd) {
handleErrors(
new InvalidProjectDirectory(
'Current working directory is either not empty or not an npm project (no package.json found). Please try again in an empty directory.'
'Current working directory is either not empty or not an npm project (no package.json found). Please try again in a valid project (see [When to Use the Coveo CLI](https://docs.coveo.com/en/cli/#when-to-use-the-coveo-cli).'
)
);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/atomic/create-atomic-result-component/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ const ensureDirectoryValidity = () => {
if (cwdFiles.length > 0 && !hasPackageInCwd) {
handleErrors(
new InvalidProjectDirectory(
'Current working directory is either not empty or not an npm project (no package.json found). Please try again in an empty directory.'
'Current working directory is either not empty or not an npm project (no package.json found). Please try again in a valid project (see [When to Use the Coveo CLI](https://docs.coveo.com/en/cli/#when-to-use-the-coveo-cli).'
)
);
}
Expand Down

0 comments on commit 2529b3e

Please sign in to comment.