diff options
Diffstat (limited to 'build.py3')
| -rwxr-xr-x | build.py3 | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -3,6 +3,7 @@ import gzip import os import shutil +import sys import brotli @@ -21,7 +22,10 @@ def compile_all(path: str, target: str): os.mkdir(os.path.join(target, file)) compile_all(src, os.path.join(target, file)) elif ext == '.kuht': - os.system(f"kuht {src} src/base.kuht -o {target}/{base}.html") + print(f"Building {src}") + exit_code = os.system(f"kuht {src} src/base.kuht -o {target}/{base}.html") + if exit_code != 0: + sys.exit(exit_code) def move_css(path: str): |
