[pypy-commit] cffi default: improve error message a bit

arigo noreply at buildbot.pypy.org
Fri Jan 2 19:16:28 CET 2015


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r1618:04e9f61eecfc
Date: 2015-01-02 18:46 +0100
http://bitbucket.org/cffi/cffi/changeset/04e9f61eecfc/

Log:	improve error message a bit

diff --git a/cffi/model.py b/cffi/model.py
--- a/cffi/model.py
+++ b/cffi/model.py
@@ -480,7 +480,7 @@
     try:
         res = getattr(ffi._backend, funcname)(*args)
     except NotImplementedError as e:
-        raise NotImplementedError("%r: %s" % (srctype, e))
+        raise NotImplementedError("%s: %r: %s" % (funcname, srctype, e))
     # note that setdefault() on WeakValueDictionary is not atomic
     # and contains a rare bug (http://bugs.python.org/issue19542);
     # we have to use a lock and do it ourselves


More information about the pypy-commit mailing list