Skip to content

Commit 90ef0c7

Browse files
committed
checking error code
1 parent 0c2a95c commit 90ef0c7

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

packaging_automation/citus_package.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,13 @@ def build_package(
360360
if output.stdout:
361361
print("Output:" + output.stdout)
362362
if output.returncode != 0:
363-
raise ValueError(output.stderr)
363+
raise ValueError(
364+
"Docker command failed.\n"
365+
f"Command: {docker_command}\n"
366+
f"Exit code: {output.returncode}\n"
367+
f"--- stdout ---\n{output.stdout}\n"
368+
f"--- stderr ---\n{output.stderr}\n"
369+
)
364370

365371
if input_output_parameters.output_validation:
366372
validate_output(

0 commit comments

Comments
 (0)