Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

better error printing. #186

Merged
merged 1 commit into from
Jan 27, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions buffalo/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ var cfgFile string

// RootCmd is the hook for all of the other commands in the buffalo binary.
var RootCmd = &cobra.Command{
Use: "buffalo",
Short: "Helps you build your Buffalo applications that much easier!",
SilenceErrors: true,
Use: "buffalo",
Short: "Helps you build your Buffalo applications that much easier!",
PersistentPreRun: func(cmd *cobra.Command, args []string) {
fmt.Printf("Buffalo version %s\n\n", Version)
},
Expand All @@ -44,6 +45,7 @@ var RootCmd = &cobra.Command{
// This is called by main.main(). It only needs to happen once to the rootCmd.
func Execute() {
if err := RootCmd.Execute(); err != nil {
fmt.Printf("Error: %s\n\n", err)
os.Exit(-1)
}
}
Expand Down