From 071f320a19e726f88cfdd6cd47cbd7101854a782 Mon Sep 17 00:00:00 2001 From: Intel A80486DX2-66 Date: Sun, 22 Sep 2024 21:50:27 +0300 Subject: [PATCH] bytebeat_compiler.py: warn about exit code --- bytebeat_compiler.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bytebeat_compiler.py b/bytebeat_compiler.py index e2107bc..a8eec5b 100644 --- a/bytebeat_compiler.py +++ b/bytebeat_compiler.py @@ -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: