Skip to content
This repository was archived by the owner on May 21, 2025. It is now read-only.

Commit 3502fdd

Browse files
authored
Merge pull request #201 from takluyver/patch-1
Better error message when try_to_run command fails
2 parents de92d4f + 3113225 commit 3502fdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codecov/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def try_to_run(cmd, shell=True):
177177
try:
178178
return check_output(cmd, shell=shell)
179179
except subprocess.CalledProcessError as e:
180-
write(' Error running `%s`: %s' % (cmd, str(getattr(e, 'output', str(e)))))
180+
write(' Error running `%s`: %s' % (cmd, e.output or str(e)))
181181

182182
def run_python_coverage(args):
183183
"""Run the Python coverage tool

0 commit comments

Comments
 (0)