summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libltdl/ltdl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libltdl/ltdl.c b/libltdl/ltdl.c
index 4342bf967..d105ce5b0 100644
--- a/libltdl/ltdl.c
+++ b/libltdl/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));
}