mirror of
https://gitlab.com/kupfer/kupferbootstrap.git
synced 2025-02-22 21:25:43 -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,
|
||||
])
|
||||
if result.returncode != 0:
|
||||
logging.info(f'Failed to flash {file}')
|
||||
exit(1)
|
||||
raise Exception(f'Failed to flash {file}')
|
||||
|
||||
|
||||
def fastboot_boot(file):
|
||||
|
@ -35,5 +34,4 @@ def fastboot_boot(file):
|
|||
file,
|
||||
])
|
||||
if result.returncode != 0:
|
||||
logging.fatal(f'Failed to boot {file} using fastboot')
|
||||
exit(1)
|
||||
raise Exception(f'Failed to boot {file} using fastboot')
|
||||
|
|
Loading…
Add table
Reference in a new issue