Skip to content

Commit 3f27acb

Browse files
CopilotLoopedBard3
andcommitted
Improve error handling for MAUI workload installation
Co-authored-by: LoopedBard3 <[email protected]>
1 parent 1713b89 commit 3f27acb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/scenarios/shared/mauisharedpython.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,12 @@ def install_latest_maui(
265265

266266
# Install the workload using the rollback file
267267
getLogger().info("Installing maui workload with rollback file")
268-
precommands.install_workload('maui', ['--from-rollback-file', 'rollback_maui.json'])
268+
try:
269+
precommands.install_workload('maui', ['--from-rollback-file', 'rollback_maui.json'])
270+
except Exception as e:
271+
getLogger().error(f"Failed to install MAUI workload: {e}")
272+
# Re-raise to ensure the finally block runs and then propagate the error
273+
raise
269274

270275
finally:
271276
# Restore global.json if needed

0 commit comments

Comments
 (0)