pyuno_dlopenwrapper: give error message before abort() if dlopen() fails
Change-Id: Idf39b33efe4c7838f2669aec8773616416811d57
This commit is contained in:
parent
2c737cedd9
commit
89035356bc
1 changed files with 1 additions and 0 deletions
|
@ -64,6 +64,7 @@ static void * load(void * address, char const * symbol) {
|
|||
h = dlopen(libname, RTLD_NOW | RTLD_GLOBAL);
|
||||
free(libname);
|
||||
if (h == NULL) {
|
||||
fprintf(stderr, "failed to load pyuno: '%s'\n", dlerror());
|
||||
abort();
|
||||
}
|
||||
func = dlsym(h, symbol);
|
||||
|
|
Loading…
Reference in a new issue