diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2013-04-12 09:45:00 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2013-04-12 09:47:18 +0200 |
commit | 89035356bce2a53014f6ecf7d001db3e7bb20ed7 (patch) | |
tree | 8b0925b2219f3d6cea0d4eb874cc02706c780076 /pyuno | |
parent | 2c737cedd914e30b013b090392a43a4cb48e62a6 (diff) |
pyuno_dlopenwrapper: give error message before abort() if dlopen() fails
Change-Id: Idf39b33efe4c7838f2669aec8773616416811d57
Diffstat (limited to 'pyuno')
-rw-r--r-- | pyuno/source/module/pyuno_dlopenwrapper.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pyuno/source/module/pyuno_dlopenwrapper.c b/pyuno/source/module/pyuno_dlopenwrapper.c index c726635b054f..2f9d4fc6987d 100644 --- a/pyuno/source/module/pyuno_dlopenwrapper.c +++ b/pyuno/source/module/pyuno_dlopenwrapper.c @@ -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); |