Load CashAgentLib: print errorString if load fails

This commit is contained in:
Siegfried Siegert 2023-06-15 10:54:32 +02:00
parent f2637e3af8
commit 5f3e0babb1
Signed by: SiegfriedSiegert
GPG Key ID: 68371E015E8F0B03

View File

@ -493,6 +493,7 @@ bool ATBDeviceControllerPlugin::private_loadCashAgentLib(QString pluginName)
QObject* plugin = pluginLoader->instance();
if (!pluginLoader->isLoaded()) {
qCritical() << "ATBDeviceControllerPlugin: can not instantiate CashAgentLib: " << pluginName;
qCritical() << " error: " << pluginLoader->errorString();
this->errorCode = 6;
this->errorDescription = "ERROR: can not instantiate CashAgentLib: " + pluginName;
return false;
@ -510,6 +511,8 @@ bool ATBDeviceControllerPlugin::private_loadCashAgentLib(QString pluginName)
qCritical() << "ATBDeviceControllerPlugin: hw is NULL";
}
qCritical() << "ATBDeviceControllerPlugin: loaded CashAgentLib";
return true;
}