Skip to content

Commit 23d704a

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

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
@@ -35,8 +35,7 @@ func Execute() {
3535
logs.AddFlags(rootCmd.PersistentFlags())
3636

3737
if err := rootCmd.Execute(); err != nil {
38-
fmt.Println(err)
39-
os.Exit(1)
38+
logs.Log.Fatal(err)
4039
}
4140
}
4241

0 commit comments

Comments
 (0)