[pypy-svn] r66953 - pypy/branch/asmgcc-mingw32/pypy/translator/platform
afa at codespeak.net
afa at codespeak.net
Tue Aug 18 23:49:18 CEST 2009
Author: afa
Date: Tue Aug 18 23:49:18 2009
New Revision: 66953
Modified:
pypy/branch/asmgcc-mingw32/pypy/translator/platform/__init__.py
Log:
Increase the number of lines displayed when a command fails.
We want to avoid the hundreds of errors that gcc generates when one forgets a header file;
OTOH Makefiles run several commands and the relevant message was often truncated.
Modified: pypy/branch/asmgcc-mingw32/pypy/translator/platform/__init__.py
==============================================================================
--- pypy/branch/asmgcc-mingw32/pypy/translator/platform/__init__.py (original)
+++ pypy/branch/asmgcc-mingw32/pypy/translator/platform/__init__.py Tue Aug 18 23:49:18 2009
@@ -103,9 +103,9 @@
errorfile = outname.new(ext='errors')
errorfile.write(stderr)
stderrlines = stderr.splitlines()
- for line in stderrlines[:20]:
+ for line in stderrlines[:50]:
log.ERROR(line)
- if len(stderrlines) > 20:
+ if len(stderrlines) > 50:
log.ERROR('...')
raise CompilationError(stdout, stderr)
More information about the Pypy-commit
mailing list