Prints a string in bold red then exits with an error code of 1. Parameters: string (str): String to print in red; prefixed with "ERROR: " automatically.
(string: str)
| 33 | |
| 34 | |
| 35 | def die(string: str) -> NoReturn: |
| 36 | """ |
| 37 | Prints a string in bold red then exits with an error code of 1. |
| 38 | |
| 39 | Parameters: |
| 40 | string (str): String to print in red; prefixed with "ERROR: " |
| 41 | automatically. |
| 42 | """ |
| 43 | red(f"ERROR: {string}") |
| 44 | sys.exit(1) |
| 45 | |
| 46 | |
| 47 | def download_initrd(gh_json, local_dest): |
no test coverage detected