[pypy-svn] r35060 - pypy/dist/pypy/translator/tool/pygame
cfbolz at codespeak.net
cfbolz at codespeak.net
Mon Nov 27 22:08:46 CET 2006
Author: cfbolz
Date: Mon Nov 27 22:08:45 2006
New Revision: 35060
Modified:
pypy/dist/pypy/translator/tool/pygame/drawgraph.py
Log:
give slightly better error message when the remote dot crashes
Modified: pypy/dist/pypy/translator/tool/pygame/drawgraph.py
==============================================================================
--- pypy/dist/pypy/translator/tool/pygame/drawgraph.py (original)
+++ pypy/dist/pypy/translator/tool/pygame/drawgraph.py Mon Nov 27 22:08:45 2006
@@ -61,6 +61,9 @@
lines[i] = lines[i][:-2] + lines[i+1]
del lines[i+1]
header = splitline(lines.pop(0))
+ # XXX very simple-minded way to give a somewhat better error message
+ if header[0] == '<body':
+ raise Exception("the dot on codespeak has very likely crashed")
assert header[0] == 'graph'
self.scale = float(header[1])
self.boundingbox = float(header[2]), float(header[3])
More information about the Pypy-commit
mailing list