tzk/util.py
2021-08-26 14:04:09 -05:00

12 lines
189 B
Python

import sys
from typing import NoReturn
class BuildError(Exception):
pass
def fail(msg: str, exit_code: int = 1) -> NoReturn:
print(msg, file=sys.stderr)
sys.exit(exit_code)