# HG changeset patch # User wbell # Date 1271900781 0 # Node ID 0bec85f087e6809d53da0c2b466cf7e7f50aced8 # Parent 5e274fc552c3e1ef6c89d18110594fb69668b58f Give more information on failed Python commands that are specified by function/module. diff --git a/bitten/build/pythontools.py b/bitten/build/pythontools.py --- 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.