mirror of
https://gitlab.com/kupfer/kupferbootstrap.git
synced 2025-02-23 05:35:44 -05:00
fastboot.py: raise exceptions on failure to boot and flash instead of calling exit(1)
This commit is contained in:
parent
c4900cfd00
commit
4ab3d7ade1
1 changed files with 2 additions and 4 deletions
|
@ -23,8 +23,7 @@ def fastboot_flash(partition, file):
|
||||||
file,
|
file,
|
||||||
])
|
])
|
||||||
if result.returncode != 0:
|
if result.returncode != 0:
|
||||||
logging.info(f'Failed to flash {file}')
|
raise Exception(f'Failed to flash {file}')
|
||||||
exit(1)
|
|
||||||
|
|
||||||
|
|
||||||
def fastboot_boot(file):
|
def fastboot_boot(file):
|
||||||
|
@ -35,5 +34,4 @@ def fastboot_boot(file):
|
||||||
file,
|
file,
|
||||||
])
|
])
|
||||||
if result.returncode != 0:
|
if result.returncode != 0:
|
||||||
logging.fatal(f'Failed to boot {file} using fastboot')
|
raise Exception(f'Failed to boot {file} using fastboot')
|
||||||
exit(1)
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue