Mercurial > bitten > bitten-test
changeset 744:0bec85f087e6
Give more information on failed Python commands that are specified by function/module.
author | wbell |
---|---|
date | Thu, 22 Apr 2010 01:46:21 +0000 |
parents | 5e274fc552c3 |
children | 91aabd647610 |
files | bitten/build/pythontools.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bitten/build/pythontools.py +++ b/bitten/build/pythontools.py @@ -126,7 +126,8 @@ returncode = shtools.execute(ctxt, executable=_python_path(ctxt), file_=file_, output=output, args=args) if returncode != 0: - ctxt.error('Executing %s failed (error code %s)' % (file_, returncode)) + ctxt.error('Executing %s failed (error code %s)' % \ + (file_ or function or module, returncode)) def pylint(ctxt, file_=None): """Extract data from a ``pylint`` run written to a file.