Load CashAgentLib: print errorString if load fails
This commit is contained in:
parent
f2637e3af8
commit
5f3e0babb1
@ -493,6 +493,7 @@ bool ATBDeviceControllerPlugin::private_loadCashAgentLib(QString pluginName)
|
|||||||
QObject* plugin = pluginLoader->instance();
|
QObject* plugin = pluginLoader->instance();
|
||||||
if (!pluginLoader->isLoaded()) {
|
if (!pluginLoader->isLoaded()) {
|
||||||
qCritical() << "ATBDeviceControllerPlugin: can not instantiate CashAgentLib: " << pluginName;
|
qCritical() << "ATBDeviceControllerPlugin: can not instantiate CashAgentLib: " << pluginName;
|
||||||
|
qCritical() << " error: " << pluginLoader->errorString();
|
||||||
this->errorCode = 6;
|
this->errorCode = 6;
|
||||||
this->errorDescription = "ERROR: can not instantiate CashAgentLib: " + pluginName;
|
this->errorDescription = "ERROR: can not instantiate CashAgentLib: " + pluginName;
|
||||||
return false;
|
return false;
|
||||||
@ -510,6 +511,8 @@ bool ATBDeviceControllerPlugin::private_loadCashAgentLib(QString pluginName)
|
|||||||
qCritical() << "ATBDeviceControllerPlugin: hw is NULL";
|
qCritical() << "ATBDeviceControllerPlugin: hw is NULL";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
qCritical() << "ATBDeviceControllerPlugin: loaded CashAgentLib";
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user