MCPcopy Create free account
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
35
36def die(string: str) -> NoReturn:
37 """
38 Prints a string in bold red then exits with an error code of 1.
39
40 Parameters:
41 string (str): String to print in red; prefixed with "ERROR: "
42 automatically.
43 """
44 red(f"ERROR: {string}")
45 sys.exit(1)
46
47

Callers 2

check_cmdFunction · 0.85
get_full_kernel_pathFunction · 0.85

Calls 1

redFunction · 0.85

Tested by

no test coverage detected