hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit ab7223df8ce3716b52e4a16afbd42b7a5502009c
parent 5e97cf3020284859ddaba528801329a54cf95847
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Sat, 17 Oct 2015 14:05:48 +0200

Improve error message on new site command

Diffstat:
Mcommands/new.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/commands/new.go b/commands/new.go
@@ -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))