From d8beb10d4c50b6ce39cd63f8ca064ca093aca2e0 Mon Sep 17 00:00:00 2001 From: Kyle Montemayor Date: Wed, 3 Dec 2025 13:16:50 -0800 Subject: [PATCH] Throw when subprocess fails --- python/gigl/scripts/post_install.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python/gigl/scripts/post_install.py b/python/gigl/scripts/post_install.py index cd13c4b0b..506e65d52 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: