WebHost: check: display exception chain one layer deep (#3153)

* WebHost: check: display exception chain one layer deep

* Update WebHostLib/check.py
This commit is contained in:
Fabian Dill 2024-04-16 03:26:59 +02:00 committed by GitHub
parent 5da3a40964
commit 38c54ba393
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -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