Skip to content

Commit

Permalink
returns exit code "1" if there are any error messages (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
christophkloeffel authored Apr 23, 2024
1 parent 722f38a commit 0d5be33
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions trlc/trlc.py
Original file line number Diff line number Diff line change
Expand Up @@ -886,12 +886,11 @@ def get_status(parser):
parser.cu.package.name))

if ok:
if options.error_on_warnings and mh.warnings: # pragma: no cover
if options.error_on_warnings and mh.warnings \
or mh.errors: # pragma: no cover
return 1
else:
return 0
else:
return 1
return 0
return 1


if __name__ == "__main__":
Expand Down

0 comments on commit 0d5be33

Please sign in to comment.