shithub: hugo

Download patch

ref: ab7223df8ce3716b52e4a16afbd42b7a5502009c
parent: 5e97cf3020284859ddaba528801329a54cf95847
author: Bjørn Erik Pedersen <[email protected]>
date: Sat Oct 17 10:05:48 EDT 2015

Improve error message on new site command

--- a/commands/new.go
+++ b/commands/new.go
@@ -124,7 +124,7 @@
 
 		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))