We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2bef1e8 commit 851bf3bCopy full SHA for 851bf3b
1 file changed
cmd/cmd.go
@@ -51,10 +51,6 @@ func Execute() {
51
handleError(k, err)
52
}
53
54
- if logHadErrors {
55
- os.Exit(1)
56
- }
57
-
58
if !commands.SuppressVersionCheck {
59
select {
60
case version := <-versionChan:
@@ -63,6 +59,9 @@ func Execute() {
63
64
65
61
62
+ if logHadErrors || (commands.ErrorExitCode && err != nil) {
+ os.Exit(1)
+ }
66
67
68
var logHadErrors bool
0 commit comments