diff --git a/monitord/plugins/dll-elf.cpp b/monitord/plugins/dll-elf.cpp index 2db007a..ece23fc 100644 --- a/monitord/plugins/dll-elf.cpp +++ b/monitord/plugins/dll-elf.cpp @@ -12,9 +12,11 @@ h=dlopen( fname, RTLD_NOW ); if (h==NULL) { + err = dlerror(); LOG_ERROR("error loading library file \"" << fname << "\"" ) + LOG_ERROR("root cause: \"" << err << "\"") } - err=dlerror(); + } DLLManager::~DLLManager()