Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Commit

Permalink
Merge pull request #201 from takluyver/patch-1
Browse files Browse the repository at this point in the history
Better error message when try_to_run command fails
  • Loading branch information
thomasrockhu authored Jun 7, 2019
2 parents de92d4f + 3113225 commit 3502fdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codecov/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def try_to_run(cmd, shell=True):
try:
return check_output(cmd, shell=shell)
except subprocess.CalledProcessError as e:
write(' Error running `%s`: %s' % (cmd, str(getattr(e, 'output', str(e)))))
write(' Error running `%s`: %s' % (cmd, e.output or str(e)))

def run_python_coverage(args):
"""Run the Python coverage tool
Expand Down

0 comments on commit 3502fdd

Please # to comment.