Changeset: ccbb3fc49f68 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=ccbb3fc49f68
Modified Files:
        monetdb5/mal/mal_linker.c
Branch: default
Log Message:

When loading a library fails, also give the reason why.


diffs (12 lines):

diff --git a/monetdb5/mal/mal_linker.c b/monetdb5/mal/mal_linker.c
--- a/monetdb5/mal/mal_linker.c
+++ b/monetdb5/mal/mal_linker.c
@@ -222,7 +222,7 @@ loadLibrary(str filename, int flag)
 
        if (handle == NULL) {
                if (flag)
-                       throw(LOADER, "loadLibrary", RUNTIME_LOAD_ERROR " could 
not locate library %s (from within file '%s')", s, filename);
+                       throw(LOADER, "loadLibrary", RUNTIME_LOAD_ERROR " could 
not locate library %s (from within file '%s'): %s", s, filename, dlerror());
        }
 
        MT_lock_set(&mal_contextLock);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to