Skip to content

Commit

Permalink
update wording
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien2p committed Jan 10, 2025
1 parent d3e16f4 commit 4d570b6
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,7 @@ class ProjectCreatorFactory {
const projectName = await ProjectCreatorFactory.getProjectName(
args,
options.directoryPath
isPlugin,
)

return isPlugin
Expand All @@ -458,7 +459,8 @@ class ProjectCreatorFactory {

private static async getProjectName(
args: string[],
directoryPath?: string
directoryPath?: string,
isPlugin?: boolean
): Promise<string> {
let askProjectName = args.length === 0
if (args.length > 0) {
Expand All @@ -468,7 +470,7 @@ class ProjectCreatorFactory {
fs.lstatSync(projectPath).isDirectory()
) {
logMessage({
message: `A directory already exists with the name ${args[0]}. Please enter a different project name.`,
message: `A directory already exists with the name ${args[0]}. Please enter a different ${isPlugin ? "plugin" : "project"} name.`,
type: "warn",
})
askProjectName = true
Expand Down

0 comments on commit 4d570b6

Please sign in to comment.