summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-10-14 19:33:54 +0000
committerDavid Robillard <d@drobilla.net>2006-10-14 19:33:54 +0000
commit3f3c5c4ff31fd778287c2e75b2225bde1eba17cc (patch)
tree2883735d365d55f777c92e4ae7a6a2ce7532ada8
parent7e5a4c8d8a567e12b34d2083434a855b6d13314e (diff)
downloadlilv-3f3c5c4ff31fd778287c2e75b2225bde1eba17cc.tar.gz
lilv-3f3c5c4ff31fd778287c2e75b2225bde1eba17cc.tar.bz2
lilv-3f3c5c4ff31fd778287c2e75b2225bde1eba17cc.zip
Print dlerror when unable to load plugin library.
git-svn-id: http://svn.drobilla.net/lad/slv2@170 a436a847-0d15-0410-975c-d299462d15a1
-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;
}