summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ltdl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ltdl.c b/ltdl.c
index 4342bf9..d105ce5 100644
--- a/ltdl.c
+++ b/ltdl.c
@@ -616,6 +616,10 @@ sys_dl_open (loader_data, filename)
if (!module)
{
+ char *error;
+ if ((error = dlerror()) != NULL) {
+ printf ("The Trinity ltdl loader was unable to dlopen() the shared library '%s' : '%s'\n\r", filename, error);
+ }
MUTEX_SETERROR (DLERROR (CANNOT_OPEN));
}