diff --git a/PluginManager.cpp b/PluginManager.cpp index 5c4338c9..389fe323 100644 --- a/PluginManager.cpp +++ b/PluginManager.cpp @@ -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 | \*-----------------------------------------------------------------*/