Skip to content

Commit

Permalink
Log the bubbled up error instead of printing it
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Wall <richard.wall@venafi.com>
  • Loading branch information
wallrj committed Oct 30, 2024
1 parent a3432a4 commit 0a622bb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ func init() {
// This is called by main.main(). It only needs to happen once to the rootCmd.
func Execute() {
if err := rootCmd.Execute(); err != nil {
fmt.Println(err)
os.Exit(1)
logs.Log.Fatal(err)
}
}

Expand Down

0 comments on commit 0a622bb

Please sign in to comment.