Print error and raise typer.Exit with the mapped exit code.
(e: UnityCLIError)
| 25 | |
| 26 | |
| 27 | def _handle_error(e: UnityCLIError) -> None: |
| 28 | """Print error and raise typer.Exit with the mapped exit code.""" |
| 29 | print_error(e.message, e.code) |
| 30 | raise typer.Exit(exit_code_for(e)) from None |
| 31 | |
| 32 | |
| 33 | def handle_cli_errors(fn: Callable[..., None]) -> Callable[..., None]: |