We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49b0604 commit 3c75a2dCopy full SHA for 3c75a2d
scripts/print_exported_headers.py
@@ -14,6 +14,7 @@
14
import json
15
import os
16
import subprocess
17
+import sys
18
from typing import List, Set
19
20
# Run buck2 from the same directory (and thus repo) as this script.
@@ -25,7 +26,10 @@ def run(command: List[str]) -> str:
25
26
try:
27
result = subprocess.run(command, capture_output=True, check=True, cwd=BUCK_CWD)
28
except subprocess.CalledProcessError as ex:
- print(f"Subprocess failed. stdout: {ex.stdout}\nstderr: {ex.stderr}")
29
+ print(
30
+ f"Subprocess failed. stdout: {ex.stdout}\nstderr: {ex.stderr}",
31
+ file=sys.stderr,
32
+ )
33
raise
34
return result.stdout.decode()
35
0 commit comments