Commits

Armin Rigo committed 452b57d

Try to preserve the exact error message

Comments (0)

Files changed (1)

             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
         #