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

Better error message when try_to_run command fails #201

Merged
merged 1 commit into from Jun 7, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion codecov/__init__.py
Expand Up @@ -181,7 +181,7 @@ def try_to_run(cmd):
try:
return check_output(cmd, shell=True)
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 remove_non_ascii(data):
Expand Down