Skip to content

Commit

Permalink
fix: Add try except to log error for clearer reason for failure (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
gmpinder authored Jun 15, 2024
1 parent b2bbbf0 commit 49a9f74
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ublue_update/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,4 +254,8 @@ def main():

# system checks passed
log.info("System passed all update checks")
run_updates(cli_args.system, system_update_available)
try:
run_updates(cli_args.system, system_update_available)
except Exception as e:
log.info(f"Failed to update: {e}")
os._exit(1)

0 comments on commit 49a9f74

Please sign in to comment.