Skip to content

Commit

Permalink
BizHawkClient: Add error message if patching fails (ArchipelagoMW#2877)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zunawe authored and AustinSumigray committed Jan 4, 2025
1 parent 1f24d3d commit 9d2cb70
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions worlds/_bizhawk/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,11 @@ async def _run_game(rom: str):


async def _patch_and_run_game(patch_file: str):
metadata, output_file = Patch.create_rom_file(patch_file)
Utils.async_start(_run_game(output_file))
try:
metadata, output_file = Patch.create_rom_file(patch_file)
Utils.async_start(_run_game(output_file))
except Exception as exc:
logger.exception(exc)


def launch() -> None:
Expand Down

0 comments on commit 9d2cb70

Please sign in to comment.