summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
553d330)
Previously, we were printing only the name of the library that we failed to
open. Now, we also print the underlying cause for the failure, (as reported
by dlerror).
wrapper_handle = dlopen (path, RTLD_LAZY);
if (wrapper_handle == NULL) {
wrapper_handle = dlopen (path, RTLD_LAZY);
if (wrapper_handle == NULL) {
- fprintf (stderr, "Error: Failed to dlopen %s\n", path);
+ const char *error = dlerror();
+ fprintf (stderr, "Error: Failed to dlopen %s: %s\n", path, error);