images: repo typo (comma goes tuple), logging/exception handling

This commit is contained in:
InsanePrawn 2021-09-29 02:35:53 +02:00
parent f09deaa9a5
commit becde79172
3 changed files with 6 additions and 5 deletions

View file

@ -65,7 +65,8 @@ def create_chroot(
],
capture_output=True)
if result.returncode != 0:
raise Exception('Failed to install chroot:' + result.stdout.decode() + '\n' + result.stderr.decode())
logging.debug(result.stdout.decode())
raise Exception(f'Failed to install chroot "{chroot_name}":' + '\n' + result.stderr.decode())
return chroot_path