mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 12:14:49 +00:00
Show usage when new site creation fails
This commit is contained in:
1 parent
ab7223df8c
commit
9d603ce88a
1 file changed
+1
@@ -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