mirror of
https://github.com/gohugoio/hugo.git
synced 2025-03-20 09:22:29 +00:00
Improve error message on new site command
This commit is contained in:
parent
5e97cf3020
commit
ab7223df8c
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ func doNewSite(basepath string, force bool) error {
|
||||||
|
|
||||||
switch {
|
switch {
|
||||||
case !isEmpty && !force:
|
case !isEmpty && !force:
|
||||||
return errors.New(basepath + " already exists")
|
return errors.New(basepath + " already exists and is not empty")
|
||||||
|
|
||||||
case !isEmpty && force:
|
case !isEmpty && force:
|
||||||
all := append(dirs, filepath.Join(basepath, "config."+configFormat))
|
all := append(dirs, filepath.Join(basepath, "config."+configFormat))
|
||||||
|
|
Loading…
Reference in a new issue