mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05: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 {
|
||||
case !isEmpty && !force:
|
||||
return errors.New(basepath + " already exists")
|
||||
return errors.New(basepath + " already exists and is not empty")
|
||||
|
||||
case !isEmpty && force:
|
||||
all := append(dirs, filepath.Join(basepath, "config."+configFormat))
|
||||
|
|
Loading…
Reference in a new issue