summaryrefslogtreecommitdiff
path: root/tox/_cmdline.py
diff options
context:
space:
mode:
Diffstat (limited to 'tox/_cmdline.py')
-rw-r--r--tox/_cmdline.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tox/_cmdline.py b/tox/_cmdline.py
index aed71ec..0df2f17 100644
--- a/tox/_cmdline.py
+++ b/tox/_cmdline.py
@@ -95,9 +95,9 @@ class Action(object):
try:
popen = self._popen(args, cwd, env=env,
stdout=f, stderr=STDOUT)
- except OSError:
- self.report.error("invocation failed, args: %s, cwd: %s" %
- (args, cwd))
+ except OSError as e:
+ self.report.error("invocation failed (errno %d), args: %s, cwd: %s" %
+ (e.errno, args, cwd))
raise
popen.outpath = outpath
popen.args = [str(x) for x in args]
@@ -118,8 +118,8 @@ class Action(object):
if ret:
invoked = " ".join(map(str, popen.args))
if outpath:
- self.report.error("invocation failed, logfile: %s" %
- outpath)
+ self.report.error("invocation failed (exit code %d), logfile: %s" %
+ (ret, outpath))
out = outpath.read()
self.report.error(out)
if hasattr(self, "commandlog"):