mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-20 03:46:11 +00:00
Print Native Plugin Load Error (#1824)
This commit is contained in:
parent
f743b5ed55
commit
1d68115c93
@ -125,6 +125,10 @@ void PluginManager::loadNativePlugins(const QDir &directory)
|
||||
QPluginLoader pluginLoader(directory.absoluteFilePath(fileName));
|
||||
QObject *plugin = pluginLoader.instance();
|
||||
if (!plugin) {
|
||||
auto errorString = pluginLoader.errorString();
|
||||
if (!errorString.isEmpty()) {
|
||||
qWarning() << "Load Error for plugin" << fileName << ":" << errorString;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
CutterPlugin *cutterPlugin = qobject_cast<CutterPlugin *>(plugin);
|
||||
|
Loading…
Reference in New Issue
Block a user