[pypy-commit] pypy reflex-support: add name of type to the error message of missing converter

wlav noreply at buildbot.pypy.org
Thu Jun 28 01:13:59 CEST 2012


Author: Wim Lavrijsen <WLavrijsen at lbl.gov>
Branch: reflex-support
Changeset: r55868:fc53dc464332
Date: 2012-06-27 14:11 -0700
http://bitbucket.org/pypy/pypy/changeset/fc53dc464332/

Log:	add name of type to the error message of missing converter

diff --git a/pypy/module/cppyy/converter.py b/pypy/module/cppyy/converter.py
--- a/pypy/module/cppyy/converter.py
+++ b/pypy/module/cppyy/converter.py
@@ -59,7 +59,7 @@
         return fieldptr
 
     def _is_abstract(self, space):
-        raise OperationError(space.w_TypeError, space.wrap("no converter available"))
+        raise OperationError(space.w_TypeError, space.wrap("no converter available for '%s'" % self.name))
 
     def convert_argument(self, space, w_obj, address, call_local):
         self._is_abstract(space)


More information about the pypy-commit mailing list