Update module.cpp

pull/1035/head
AlexandreRouma 2023-04-01 19:10:47 +02:00 zatwierdzone przez GitHub
rodzic 800a8b22c7
commit 13a268a3e1
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -33,7 +33,7 @@ ModuleManager::Module_t ModuleManager::loadModule(std::string path) {
#else
mod.handle = dlopen(path.c_str(), RTLD_LAZY | RTLD_LOCAL);
if (mod.handle == NULL) {
flog::error("Couldn't load {0}.", path);
flog::error("Couldn't load {0}: {1}", path, dlerror());
mod.handle = NULL;
return mod;
}
@ -183,4 +183,4 @@ void ModuleManager::doPostInitAll() {
flog::info("Running post-init for {0}", name);
inst.instance->postInit();
}
}
}