bytebeat_compiler.py: warn about exit code
This commit is contained in:
parent
a940010d5d
commit
071f320a19
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user