Skip to content

Commit 04e3738

Browse files
Return exit code 1 if GitOpsException
1 parent 800c912 commit 04e3738

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

gitopscli/__main__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import logging
2+
import sys
23

34
from gitopscli.cliparser import create_cli
45
from gitopscli.commands.add_pr_comment import pr_comment_command
@@ -26,6 +27,7 @@ def main():
2627
command(**vars(args))
2728
except GitOpsException as ex:
2829
logging.error(ex)
30+
sys.exit(1)
2931

3032

3133
if __name__ == "__main__":

0 commit comments

Comments
 (0)