diff --git a/.github/scripts/watch_voice_bazel.py b/.github/scripts/watch_voice_bazel.py index a5903d6730..d27b7a2664 100644 --- a/.github/scripts/watch_voice_bazel.py +++ b/.github/scripts/watch_voice_bazel.py @@ -69,6 +69,9 @@ def main(): diagnose() time.sleep(1) reader.join() + if process.returncode and not captured: + print("Bazel command failed; capturing diagnostics", flush=True) + diagnose() return process.returncode