From 34f5f546841c8e9022ac0ccf957f636907e643bb Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Mon, 16 Feb 2026 14:46:24 +0200 Subject: Updates --- jprov/runner.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'jprov/runner.py') diff --git a/jprov/runner.py b/jprov/runner.py index 88dfe7f..0f0a629 100644 --- a/jprov/runner.py +++ b/jprov/runner.py @@ -58,6 +58,11 @@ def run( fh.write(stderr) if proc.returncode != 0 and not allow_fail: - raise RuntimeError(f"command failed: {' '.join(cmd_list)} (exit {proc.returncode})") + detail = "" + if stderr: + detail = f" stderr: {stderr.strip()}" + raise RuntimeError( + f"command failed: {' '.join(cmd_list)} (exit {proc.returncode}){detail}" + ) return RunResult(cmd=cmd_list, returncode=proc.returncode, stdout=stdout, stderr=stderr) -- cgit v1.3