Warn if dlopen() failed

master
Alexey Sokolov 3 years ago
parent 9d962ded6a
commit 125b1ab134

@ -109,6 +109,11 @@ void PluginManager::AddPlugin(const filesystem::path& path)
QPluginLoader* loader = new QPluginLoader(QString::fromStdString(path_string));
QObject* instance = loader->instance();
if(!loader->isLoaded())
{
LOG_WARNING("[PluginManager] Plugin %s cannot be loaded: %s", path.c_str(), loader->errorString().toStdString().c_str());
}
/*-----------------------------------------------------------------*\
| Check that the plugin is valid, then check the API version |
\*-----------------------------------------------------------------*/

Loading…
Cancel
Save