Skip to content

Commit 40e8073

Browse files
mmorel-35ivanvc
andauthored
Update etcdctl/ctlv3/ctl.go
Co-authored-by: Iván Valdés Castillo <[email protected]>
1 parent 8f37a26 commit 40e8073

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

etcdctl/ctlv3/ctl.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,10 @@ func Start() error {
114114

115115
func MustStart() {
116116
if err := Start(); err != nil {
117-
if !rootCmd.SilenceErrors {
118-
os.Exit(cobrautl.ExitError)
117+
if rootCmd.SilenceErrors {
118+
cobrautl.ExitWithError(cobrautl.ExitError, err)
119119
}
120-
cobrautl.ExitWithError(cobrautl.ExitError, err)
120+
os.Exit(cobrautl.ExitError)
121121
}
122122
}
123123

0 commit comments

Comments
 (0)