improve error message.
This commit is contained in:
parent
66eb2d71b5
commit
73fe640af3
@ -76,7 +76,7 @@ Yap_LoadForeignFile(char *file, int flags)
|
|||||||
out = (void *)dlopen(file,dlflag);
|
out = (void *)dlopen(file,dlflag);
|
||||||
if (!out) {
|
if (!out) {
|
||||||
CACHE_REGS
|
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;
|
return out;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user