Commits

Armin Rigo  committed 6d2a272

Improve error message (thanks sarvi)

  • Participants
  • Parent commits 040c709

Comments (0)

Files changed (1)

File c/_cffi_backend.c

     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;
     }