From ab7223df8ce3716b52e4a16afbd42b7a5502009c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Sat, 17 Oct 2015 14:05:48 +0200 Subject: [PATCH] Improve error message on new site command --- commands/new.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/new.go b/commands/new.go index b4b83b05a..936694535 100644 --- 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))