[pypy-svn] r28972 - pypy/dist/pypy/translator/cli
antocuni at codespeak.net
antocuni at codespeak.net
Mon Jun 19 23:42:38 CEST 2006
Author: antocuni
Date: Mon Jun 19 23:42:31 2006
New Revision: 28972
Modified:
pypy/dist/pypy/translator/cli/gencli.py
Log:
Show stderr when failing to assemble the generated code.
Modified: pypy/dist/pypy/translator/cli/gencli.py
==============================================================================
--- pypy/dist/pypy/translator/cli/gencli.py (original)
+++ pypy/dist/pypy/translator/cli/gencli.py Mon Jun 19 23:42:31 2006
@@ -100,5 +100,5 @@
proc = subprocess.Popen([ilasm, tmpfile], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout, stderr = proc.communicate()
retval = proc.wait()
- assert retval == 0, 'ilasm failed to assemble (%s):\n%s' % (tmpfile, stdout)
+ assert retval == 0, 'ilasm failed to assemble (%s):\n%s\n%s' % (tmpfile, stdout, stderr)
return tmpfile.replace('.il', '.exe')
More information about the Pypy-commit
mailing list