1
0

bytebeat_compiler.py: warn about exit code

This commit is contained in:
Intel A80486DX2-66 2024-09-22 21:50:27 +03:00
parent a940010d5d
commit 071f320a19
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B

View File

@ -90,6 +90,7 @@ def substitute_vars(replacements: Dict[str, Union[bool, str]], text: str,
def run_command(*command: list[str]) -> None:
print("[>]", command_line_join(command), flush=True)
if subprocess.run(command).returncode != EXIT_SUCCESS:
print("An error occured during rendering!")
raise SystemExit(EXIT_FAILURE)
def compile_substituted_file(input_file: str, output_file: str) -> None: