Print failure context (including logs) and re-raise with exception chaining.
(
failure: InstallationFailure | UninstallationFailure, original_exception: BaseException
)
| 359 | |
| 360 | |
| 361 | def handle_exception_and_error_out( |
| 362 | failure: InstallationFailure | UninstallationFailure, original_exception: BaseException |
| 363 | ) -> None: |
| 364 | """Print failure context (including logs) and re-raise with exception chaining.""" |
| 365 | print(failure.read_text()) |
| 366 | raise failure from original_exception |
| 367 | |
| 368 | |
| 369 | def _read_briefcase_log_tail(path: Path, last_digits: int) -> str: |
no test coverage detected