# HG changeset patch # User cmlenz # Date 1188577873 0 # Node ID ed81c13a5cacab004fc92277d57db2a2c5bdd775 # Parent e0b5a76359dabac5ffcea3d415019375965a8c29 `py:exec` recipe command now reports an error for process exit codes <> 0. Should close #174. diff --git a/bitten/build/pythontools.py b/bitten/build/pythontools.py --- a/bitten/build/pythontools.py +++ b/bitten/build/pythontools.py @@ -119,8 +119,10 @@ return from bitten.build import shtools - shtools.execute(ctxt, executable=_python_path(ctxt), file_=file_, - output=output, args=args) + 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)) def pylint(ctxt, file_=None): """Extract data from a ``pylint`` run written to a file.