Author: Armin Rigo <[email protected]>
Branch:
Changeset: r957:6d2a272ad747
Date: 2012-09-22 10:42 +0200
http://bitbucket.org/cffi/cffi/changeset/6d2a272ad747/
Log: Improve error message (thanks sarvi)
diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c
--- a/c/_cffi_backend.c
+++ b/c/_cffi_backend.c
@@ -2704,8 +2704,8 @@
handle = dlopen(filename_or_null,
RTLD_LAZY | (is_global?RTLD_GLOBAL:RTLD_LOCAL));
if (handle == NULL) {
- PyErr_Format(PyExc_OSError, "cannot load library: %s",
- printable_filename);
+ PyErr_Format(PyExc_OSError, "cannot load library %s: %s",
+ printable_filename, dlerror());
return NULL;
}
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit