improve error message.

This commit is contained in:
Vitor Santos Costa 2012-01-09 23:26:57 +00:00
parent 66eb2d71b5
commit 73fe640af3

View File

@ -76,7 +76,7 @@ Yap_LoadForeignFile(char *file, int flags)
out = (void *)dlopen(file,dlflag);
if (!out) {
CACHE_REGS
Yap_Error(SYSTEM_ERROR, ARG1, "dlopen error %s\n", dlerror());
Yap_Error(SYSTEM_ERROR, ARG1, "dlopen error for %s: %s\n", file, dlerror());
}
return out;
}