Skip to content
This repository was archived by the owner on Jun 28, 2023. It is now read-only.

Commit ea8d13a

Browse files
committed
Output error message generated by commands
1 parent 88ab32f commit ea8d13a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build_doc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python3
22

3-
from subprocess import check_output
3+
from subprocess import check_output, STDOUT
44
import shlex
55
import os
66
import logging
@@ -22,7 +22,7 @@ def run_cmd(cmd, quiet=False):
2222
logging.info('command: {}'.format(cmd))
2323

2424
# use shlex to keep quoted substrings
25-
result = check_output(shlex.split(cmd)).strip()
25+
result = check_output(shlex.split(cmd), stderr=STDOUT).strip()
2626

2727
if result and not quiet:
2828
logging.debug(result.decode())

0 commit comments

Comments
 (0)