8000 Emit stdout when dying from a failed command · scijava/javadoc-wrangler@f77b741 · GitHub
[go: up one dir, main page]

Skip to content

Commit f77b741

Browse files
committed
Emit stdout when dying from a failed command
1 parent 3b26906 commit f77b741

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wrangle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def execute(cmd: Sequence[str], die_on_error=True):
123123
if result.returncode != 0:
124124
error_message = f"Command {cmd[0]} failed with exit code {result.returncode}"
125125
if die_on_error:
126-
die(error_message)
126+
die(error_message + ":\n" + result.stdout.decode())
127127
else:
128128
raise RuntimeError(error_message)
129129
return result.stdout.decode().splitlines(keepends=True)

0 commit comments

Comments
 (0)
0