diff --git a/es2panda/scripts/generate_js_bytecode.py b/es2panda/scripts/generate_js_bytecode.py index 6b49bf2adf73284d8f83c0b4adb2da1f4f007584..2cb17d2d37fd1e7f9666a1bb4298e290ba1484a6 100755 --- a/es2panda/scripts/generate_js_bytecode.py +++ b/es2panda/scripts/generate_js_bytecode.py @@ -50,9 +50,13 @@ def parse_args(): return arguments def run_command(cmd, execution_path): - print(" ".join(cmd) + " | execution_path: " + execution_path) proc = subprocess.Popen(cmd, cwd=execution_path) - proc.wait() + stdout, stderr = proc.communicate() + if stderr: + print("Gen abc failed") + print(" ".join(cmd) + " | execution_path: " + execution_path) + print(stderr) + exit(1) def gen_abc_info(input_arguments):