Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

fix(cli): rephrase not empty directory error message #778

Merged
merged 1 commit into from
May 26, 2021

Conversation

jamesgeorge007
Copy link
Contributor

The user is greeted with the following message if he/she attempts to create a project in the current directory that is non-empty:-

Can't create . because there's already a non-empty directory . existing in path.

This PR aims at rephrasing the above message such that the directory name shows up instead.

@clarkdo clarkdo changed the title chore(create-nuxt-app): rephrase error message chore(cli): rephrase error message Apr 21, 2021
@jamesgeorge007
Copy link
Contributor Author

It would be nice to have a --force flag to override this behavior #556 (comment)
@clarkdo WDYT?

@clarkdo
Copy link
Member

clarkdo commented May 26, 2021

@jamesgeorge007 Sorry for the late reply, the --force idea looks good to me, but I think we can use another name which is more related to dir overridden.

@clarkdo clarkdo changed the title chore(cli): rephrase error message fix(cli): rephrase error message May 26, 2021
@clarkdo clarkdo changed the title fix(cli): rephrase error message fix(cli): rephrase not empty directory error message May 26, 2021
@clarkdo clarkdo merged commit 8186168 into nuxt:master May 26, 2021
@jamesgeorge007 jamesgeorge007 deleted the rephrase-msg branch May 27, 2021 06:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants