Skip to content

graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs

Python

Expose JSON control subprocess failures

yxlyx862b5c1f5188
diff --git a/scripts/test-json-controls.py b/scripts/test-json-controls.py
index 04078ae8..e667f03e 100755
--- a/scripts/test-json-controls.py
+++ b/scripts/test-json-controls.py
@@ -89,6 +89,8 @@ def run():
p = subprocess.run([BIN, "--json"], input=stdin, text=True,
capture_output=True, timeout=60, env=env)
out = p.stdout
+ if p.returncode != 0:
+ print(f"graff exited {p.returncode}; stderr follows:\n{p.stderr}", file=sys.stderr)
except subprocess.TimeoutExpired as e:
out = (e.stdout or b"").decode("utf-8", "ignore") if isinstance(e.stdout, bytes) else (e.stdout or "")