mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-15 20:44:01 +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")
|
||||
if err := doNewSite(createpath, forceNew); err != nil {
|
||||
cmd.Usage()
|
||||
jww.FATAL.Fatalln(err)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user