Show usage when new site creation fails

This commit is contained in:
Bjørn Erik Pedersen 2015-10-17 14:08:45 +02:00
parent ab7223df8c
commit 9d603ce88a

View file

@ -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)
}
}