[pypy-svn] r15260 - pypy/dist/pypy/rpython

cfbolz at codespeak.net cfbolz at codespeak.net
Thu Jul 28 17:20:52 CEST 2005


Author: cfbolz
Date: Thu Jul 28 17:20:51 2005
New Revision: 15260

Modified:
   pypy/dist/pypy/rpython/rstr.py
Log:
try to give a more helpful error message

Modified: pypy/dist/pypy/rpython/rstr.py
==============================================================================
--- pypy/dist/pypy/rpython/rstr.py	(original)
+++ pypy/dist/pypy/rpython/rstr.py	Thu Jul 28 17:20:51 2005
@@ -317,7 +317,7 @@
                 vchunk = hop.gendirectcall(rint.ll_int2oct, vitem,
                                            inputconst(Bool, False))
             else:
-                assert 0
+                raise TyperError, "%%%s is not RPython" % (code, )
         else:
             vchunk = inputconst(string_repr, thing)
         i = inputconst(Signed, i)



More information about the Pypy-commit mailing list