summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plugininstance.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugininstance.c b/src/plugininstance.c
index f70866a..1566c7d 100644
--- a/src/plugininstance.c
+++ b/src/plugininstance.c
@@ -39,9 +39,10 @@ slv2_plugin_instantiate(const SLV2Plugin* plugin,
if (!lib_path)
return NULL;
+ dlerror();
void* lib = dlopen((char*)lib_path, RTLD_NOW);
if (!lib) {
- printf("Unable to open library %s\n", lib_path);
+ printf("Unable to open library %s (%s)\n", lib_path, dlerror());
return NULL;
}