mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-23 00:25:57 +01:00
pluginmgr: fix double use of dlerror()
This commit is contained in:
parent
51282f964f
commit
395985f815
1 changed files with 3 additions and 2 deletions
|
@ -25,8 +25,9 @@ CPlugin* CPluginSystem::loadPlugin(const std::string& path) {
|
||||||
HANDLE MODULE = dlopen(path.c_str(), RTLD_LAZY);
|
HANDLE MODULE = dlopen(path.c_str(), RTLD_LAZY);
|
||||||
|
|
||||||
if (!MODULE) {
|
if (!MODULE) {
|
||||||
m_szLastError = std::format("Plugin {} could not be loaded: {}", path, dlerror());
|
std::string strerr = dlerror();
|
||||||
Debug::log(ERR, " [PluginSystem] Plugin {} could not be loaded: {}", path, dlerror());
|
m_szLastError = std::format("Plugin {} could not be loaded: {}", path, strerr);
|
||||||
|
Debug::log(ERR, " [PluginSystem] Plugin {} could not be loaded: {}", path, strerr);
|
||||||
m_vLoadedPlugins.pop_back();
|
m_vLoadedPlugins.pop_back();
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue