diff --git a/python/gigl/scripts/post_install.py b/python/gigl/scripts/post_install.py index cd13c4b0..506e65d5 100644 --- a/python/gigl/scripts/post_install.py +++ b/python/gigl/scripts/post_install.py @@ -53,7 +53,10 @@ def main(): try: print(f"Executing {cmd}...") result = run_command_and_stream_stdout(cmd) - print("Post-install script finished running, with return code: ", result) + if result != 0: + raise RuntimeError( + f"Post-install script finished running, with return code: {result}" + ) return result except subprocess.CalledProcessError as e: