Load CashAgentLib: print errorString if load fails
This commit is contained in:
		| @@ -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; | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user