Skip to content

Commit

Permalink
WebHost: check: display exception chain one layer deep (ArchipelagoMW…
Browse files Browse the repository at this point in the history
…#3153)

* WebHost: check: display exception chain one layer deep

* Update WebHostLib/check.py
  • Loading branch information
Berserker66 authored Apr 16, 2024
1 parent 5da3a40 commit 38c54ba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion WebHostLib/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,10 @@ def roll_options(options: Dict[str, Union[dict, str]],
rolled_results[f"{filename}/{i + 1}"] = roll_settings(yaml_data,
plando_options=plando_options)
except Exception as e:
results[filename] = f"Failed to generate options in {filename}: {e}"
if e.__cause__:
results[filename] = f"Failed to generate options in {filename}: {e} - {e.__cause__}"
else:
results[filename] = f"Failed to generate options in {filename}: {e}"
else:
results[filename] = True
return results, rolled_results

0 comments on commit 38c54ba

Please sign in to comment.