aboutsummaryrefslogtreecommitdiffstats
path: root/extras/scripts/crcchecker.py
diff options
context:
space:
mode:
Diffstat (limited to 'extras/scripts/crcchecker.py')
-rwxr-xr-xextras/scripts/crcchecker.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/extras/scripts/crcchecker.py b/extras/scripts/crcchecker.py
index 7dcdb681e18..4a8f9b16669 100755
--- a/extras/scripts/crcchecker.py
+++ b/extras/scripts/crcchecker.py
@@ -40,10 +40,13 @@ def crc_from_apigen(revision, filename):
if returncode.returncode != 0:
print(
f"vppapigen failed for {revision}:{filename} with "
- "command\n {apigen}\n error: {rv}",
- returncode.stderr.decode("ascii"),
+ f"command:\n {apigen}\n error: {returncode.returncode}",
file=sys.stderr,
)
+ if returncode.stderr:
+ print(f"stderr: {returncode.stderr.decode('ascii')}", file=sys.stderr)
+ if returncode.stdout:
+ print(f"stdout: {returncode.stdout.decode('ascii')}", file=sys.stderr)
sys.exit(-2)
return json.loads(returncode.stdout)