Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

Commit

Permalink
fix error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
martinnirtl committed Feb 1, 2020
1 parent 85c0d9d commit 970d1bc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions internal/commands/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,5 @@ func rootPreRunHook(cmd *cobra.Command, args []string) {

// Execute starts cobra command execution
func Execute() {
if err := RootCommand.Execute(); err != nil {
fmt.Println(err)
os.Exit(1)
}
RootCommand.Execute()
}

0 comments on commit 970d1bc

Please sign in to comment.