Author: Armin Rigo <[email protected]>
Branch:
Changeset: r1250:452b57d57304
Date: 2013-05-10 16:07 +0200
http://bitbucket.org/cffi/cffi/changeset/452b57d57304/
Log: Try to preserve the exact error message
diff --git a/cffi/api.py b/cffi/api.py
--- a/cffi/api.py
+++ b/cffi/api.py
@@ -372,8 +372,8 @@
BType = ffi._get_cached_btype(tp)
try:
value = backendlib.load_function(BType, name)
- except KeyError:
- raise AttributeError(name)
+ except KeyError, e:
+ raise AttributeError('%s: %s' % (name, e))
library.__dict__[name] = value
return
#
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit