MCPcopy Create free account
hub / github.com/bshoshany/thread-pool / print_error_and_exit

Function print_error_and_exit

scripts/compile_cpp.py:172–175  ·  view source on GitHub ↗

Print an error message followed by a newline in red and exit.

(message: str)

Source from the content-addressed store, hash-verified

170
171
172def print_error_and_exit(message: str) -> Never:
173 """Print an error message followed by a newline in red and exit."""
174 print_ansi(message + "\n", ANSI_ERROR)
175 sys.exit(1)
176
177
178def relative_or_full_path(path: pathlib.Path) -> pathlib.Path:

Callers 2

compile_moduleFunction · 0.85
compile_cpp.pyFile · 0.85

Calls 1

print_ansiFunction · 0.85

Tested by

no test coverage detected