mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-20 11:56:12 +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));
|
QPluginLoader pluginLoader(directory.absoluteFilePath(fileName));
|
||||||
QObject *plugin = pluginLoader.instance();
|
QObject *plugin = pluginLoader.instance();
|
||||||
if (!plugin) {
|
if (!plugin) {
|
||||||
|
auto errorString = pluginLoader.errorString();
|
||||||
|
if (!errorString.isEmpty()) {
|
||||||
|
qWarning() << "Load Error for plugin" << fileName << ":" << errorString;
|
||||||
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
CutterPlugin *cutterPlugin = qobject_cast<CutterPlugin *>(plugin);
|
CutterPlugin *cutterPlugin = qobject_cast<CutterPlugin *>(plugin);
|
||||||
|
Loading…
Reference in New Issue
Block a user