Skip to content

Commit f6b3b4b

Browse files
committed
Log the bubbled up error instead of printing it
Signed-off-by: Richard Wall <[email protected]>
1 parent 10f0353 commit f6b3b4b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cmd/root.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ func init() {
2929
// This is called by main.main(). It only needs to happen once to the rootCmd.
3030
func Execute() {
3131
if err := rootCmd.Execute(); err != nil {
32-
fmt.Println(err)
33-
os.Exit(1)
32+
logs.Log.Fatal(err)
3433
}
3534
}
3635

0 commit comments

Comments
 (0)