From 89035356bce2a53014f6ecf7d001db3e7bb20ed7 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Fri, 12 Apr 2013 09:45:00 +0200 Subject: [PATCH] pyuno_dlopenwrapper: give error message before abort() if dlopen() fails Change-Id: Idf39b33efe4c7838f2669aec8773616416811d57 --- pyuno/source/module/pyuno_dlopenwrapper.c | 1 + 1 file changed, 1 insertion(+) 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);