Skip to content

Commit 907967e

Browse files
authored
Exit with error status on error
1 parent dc9444c commit 907967e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sidecar/cmd/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,6 @@ func main() {
4242

4343
if err := cmd.ExecuteContext(ctx); err != nil {
4444
klog.ErrorS(err, "Exiting on error")
45+
os.Exit(1)
4546
}
4647
}

0 commit comments

Comments
 (0)