From 0ae51e02d3856b14a3686791628d77b7bef3589f Mon Sep 17 00:00:00 2001 From: BotoX Date: Tue, 7 Aug 2018 23:05:56 +0200 Subject: [PATCH] compile-all.py -> exit on error --- compile-all.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/compile-all.py b/compile-all.py index c45c64e0..40e034c6 100755 --- a/compile-all.py +++ b/compile-all.py @@ -38,7 +38,9 @@ if __name__ == "__main__": Compiler.append("-o" + OutPath) try: - subprocess.call(Compiler) + err = subprocess.call(Compiler) + if err: + raise Exception() except Exception: sys.exit(1)