From: Bjørn Erik Pedersen Date: Sat, 17 Oct 2015 12:05:48 +0000 (+0200) Subject: Improve error message on new site command X-Git-Tag: v0.15~103 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ab7223df8ce3716b52e4a16afbd42b7a5502009c;p=brevno-suite%2Fhugo Improve error message on new site command --- diff --git a/commands/new.go b/commands/new.go index b4b83b05..93669453 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))