Skip to content

Commit 9dc90bd

Browse files
committed
print stderr instead of stdout on failure
1 parent 174ff4b commit 9dc90bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bioproject/{{ cookiecutter.project_slug }}/scripts/workflow_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def runSmk(smk, configfile, wdir, profile):
125125

126126
if rg.returncode != 0:
127127
print(f"[bold red]Dryrun failed - return {rg.returncode}[/bold red]")
128-
for _line in _stdout.split('\n'):
128+
for _line in _stderr.decode('utf-8').split('\n'):
129129
print(f"{_line}")
130130
sys.exit(rg.returncode)
131131

0 commit comments

Comments
 (0)