Skip to content

Commit

Permalink
Improve error message on new site command
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Oct 17, 2015
1 parent 5e97cf3 commit ab7223d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/new.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit ab7223d

Please sign in to comment.