Show usage when new site creation fails - hugo - [fork] hugo port for 9front
HTML git clone git@git.drkhsh.at/hugo.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit 9d603ce88a7067ac794e2f1e0bd8313308cd9281
DIR parent ab7223df8ce3716b52e4a16afbd42b7a5502009c
HTML Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date: Sat, 17 Oct 2015 14:08:45 +0200
Show usage when new site creation fails
Diffstat:
M commands/new.go | 1 +
1 file changed, 1 insertion(+), 0 deletions(-)
---
DIR diff --git a/commands/new.go b/commands/new.go
@@ -160,6 +160,7 @@ func NewSite(cmd *cobra.Command, args []string) {
forceNew, _ := cmd.Flags().GetBool("force")
if err := doNewSite(createpath, forceNew); err != nil {
+ cmd.Usage()
jww.FATAL.Fatalln(err)
}
}