mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
Show usage when new site creation fails
This commit is contained in:
@@ -160,6 +160,7 @@ func NewSite(cmd *cobra.Command, args []string) {
|
|||||||
|
|
||||||
forceNew, _ := cmd.Flags().GetBool("force")
|
forceNew, _ := cmd.Flags().GetBool("force")
|
||||||
if err := doNewSite(createpath, forceNew); err != nil {
|
if err := doNewSite(createpath, forceNew); err != nil {
|
||||||
|
cmd.Usage()
|
||||||
jww.FATAL.Fatalln(err)
|
jww.FATAL.Fatalln(err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user