Skip to content

Commit b072a21

Browse files
log and exit in __main__
1 parent 819d693 commit b072a21

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/ephemeris/shed_tools.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -737,8 +737,11 @@ def main(argv=None):
737737

738738
if install_results:
739739
if len(install_results.errored_repositories) > 0:
740-
sys.exit(1)
740+
log.error("There were errors for some repositories")
741+
return 1
741742

742743

743744
if __name__ == "__main__":
744-
main()
745+
exit_code = main()
746+
if exit_code:
747+
sys.exit(exit_code)

0 commit comments

Comments
 (0)