1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-28 02:50:41 +03:00

add dlerror to another error path

This commit is contained in:
Alasdair Kergon 2006-07-05 17:26:36 +00:00
parent 1f84f09381
commit f2f8855b76

View File

@ -49,8 +49,8 @@ void *load_shared_library(struct cmd_context *cmd, const char *libname,
if (!(library = dlopen(path, RTLD_LAZY | RTLD_GLOBAL))) {
if (silent && ignorelockingfailure())
log_verbose("Unable to open external %s library %s",
desc, path);
log_verbose("Unable to open external %s library %s: %s",
desc, path, dlerror());
else
log_error("Unable to open external %s library %s: %s",
desc, path, dlerror());