MCPcopy Index your code
hub / github.com/ClangBuiltLinux/boot-utils / die

Function die

utils.py:35–44  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

33
34
35def 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
47def download_initrd(gh_json, local_dest):

Callers 2

check_cmdFunction · 0.85
get_full_kernel_pathFunction · 0.85

Calls 1

redFunction · 0.85

Tested by

no test coverage detected