Skip to content

Commit 1ff210e

Browse files
authored
fix: [REL-8111] [rel-8111] investigate and fix ldcli returning zero error code on failure (#589)
* fix * add note to readme on running locally * set 1 exit command when error
1 parent 77f65ba commit 1ff210e

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)