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 EmilyV99 committed Apr 15, 2024
1 parent fa0505c commit 3b88a26
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 3b88a26

Please sign in to comment.