Improve error message on new site command

This commit is contained in:
Bjørn Erik Pedersen 2015-10-17 14:05:48 +02:00
parent 5e97cf3020
commit ab7223df8c

View file

@ -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))