Skip to content

Commit b2a7bc6

Browse files
committed
set 1 exit command when error
1 parent 1159667 commit b2a7bc6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/root.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ See each command's help for details on how to use the generated script.`, rootCm
270270
case err != nil:
271271
outcome = analytics.ERROR
272272
fmt.Fprintln(os.Stderr, err.Error())
273+
os.Exit(1)
273274
default:
274275
outcome = analytics.SUCCESS
275276
}

0 commit comments

Comments
 (0)