mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
Show usage when new site creation fails
This commit is contained in:
parent
ab7223df8c
commit
9d603ce88a
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue