Skip to content

Commit

Permalink
Merge branch 'plugin_load_error_output' into 'master'
Browse files Browse the repository at this point in the history
[buteo-syncfw] Output error string when plugin loading fails. Contributes to JB#53994

See merge request mer-core/buteo-syncfw!66
  • Loading branch information
pvuorela committed Apr 23, 2021
2 parents 382548f + 9f0f93c commit 04ace1f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions libbuteosyncfw/pluginmgr/SyncPluginBase.cpp
Expand Up @@ -21,6 +21,7 @@
*
*/
#include "SyncPluginBase.h"
#include "SyncResults.h"
#include "PluginCbInterface.h"

using namespace Buteo;
Expand All @@ -33,6 +34,7 @@ SyncPluginBase::SyncPluginBase(const QString &aPluginName,
iProfileName(aProfileName)
{
// register various metatypes used in DBus arguments
qRegisterMetaType<SyncResults::MinorCode>("SyncResults::MinorCode");
qRegisterMetaType<Sync::SyncStatus>("Sync::SyncStatus");
qRegisterMetaType<Sync::TransferDatabase>("Sync::TransferDatabase");
qRegisterMetaType<Sync::TransferType>("Sync::TransferType");
Expand Down
2 changes: 2 additions & 0 deletions msyncd/PluginRunner.cpp
Expand Up @@ -23,6 +23,7 @@

#include "PluginRunner.h"
#include "LogMacros.h"
#include "SyncResults.h"

using namespace Buteo;

Expand All @@ -38,6 +39,7 @@ PluginRunner::PluginRunner(PluginType aPluginType, const QString &aPluginName,
FUNCTION_CALL_TRACE;

// register various metatypes used in DBus arguments
qRegisterMetaType<SyncResults::MinorCode>("SyncResults::MinorCode");
qRegisterMetaType<Sync::SyncStatus>("Sync::SyncStatus");
qRegisterMetaType<Sync::TransferDatabase>("Sync::TransferDatabase");
qRegisterMetaType<Sync::TransferType>("Sync::TransferType");
Expand Down
4 changes: 2 additions & 2 deletions oopp-runner/PluginServiceObj.cpp
Expand Up @@ -61,8 +61,8 @@ SyncPluginBase *PluginServiceObj::initializePlugin()

iSyncPluginLoader = qobject_cast<SyncPluginLoader *>(iPluginLoader->instance());
if (!iSyncPluginLoader) {
LOG_WARNING("Unable to load SyncPluginLoader " << iPluginName
<< " from path " << iPluginFilePath);
LOG_WARNING("Unable to load SyncPluginLoader" << iPluginName << "from path" << iPluginFilePath)
<< "Error:" << iPluginLoader->errorString();
return nullptr;
}

Expand Down

0 comments on commit 04ace1f

Please sign in to comment.