Refactored error output & exit

This commit is contained in:
マリウス
2020-10-15 21:38:25 +01:00
parent a0b33ddfd2
commit fc2c29cf52
3 changed files with 22 additions and 15 deletions
+2 -2
View File
@@ -23,8 +23,8 @@ var rootCmd = &cobra.Command{
func Execute() {
if err := rootCmd.Execute(); err != nil {
fmt.Println(err)
os.Exit(1)
fmt.Printf("△ %+v\n", err)
os.Exit(-1)
}
}