Skip to content

Commit

Permalink
Add missing aborts after logging errors
Browse files Browse the repository at this point in the history
  • Loading branch information
remram44 committed Apr 14, 2022
1 parent 1eaa627 commit 8904cc7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ def vagrant_setup_create(args):
logger.error("Need to install %d packages but couldn't select a "
"package installer: %s",
len(packages), e)
sys.exit(1)

target.mkdir(parents=True)

Expand Down
1 change: 1 addition & 0 deletions reprounzip/reprounzip/unpackers/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ def installpkgs(args):
installer = select_installer(pack, runs)
except CantFindInstaller as e:
logger.error("Couldn't select a package installer: %s", e)
sys.exit(1)

if args.summary:
# Print out a list of packages with their status
Expand Down
1 change: 1 addition & 0 deletions tests/check_images.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ def check_docker():
'/'.join(repository),
tag,
)
error = True
else:
logger.info(
"Docker image ok: %s:%s",
Expand Down

0 comments on commit 8904cc7

Please sign in to comment.