From 1da76c8dbb25b51fd21bbdc6c22a95bf30313a4c Mon Sep 17 00:00:00 2001 From: Rainer Keller <rainer.keller@theqtcompany.com> Date: Tue, 25 Aug 2015 09:20:58 +0200 Subject: [PATCH] Fix useless error message The error message "Error 1: Error code is not set" has no useful information in this case. LTKLinuxUtil::loadSharedLib does only return the values FAILURE or SUCCESS. No useful error text can be displayed from that. Change-Id: Ic1e00ad6a68dd14eddbe7e103a37190643b75270 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com> Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi> --- src/virtualkeyboard/lipisharedrecognizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/virtualkeyboard/lipisharedrecognizer.cpp b/src/virtualkeyboard/lipisharedrecognizer.cpp index 8335fdaf..3418422c 100644 --- a/src/virtualkeyboard/lipisharedrecognizer.cpp +++ b/src/virtualkeyboard/lipisharedrecognizer.cpp @@ -176,7 +176,7 @@ int LipiSharedRecognizer::loadLipiInterface() int result = osUtil->loadSharedLib(lipiRootPath, LIPIENGINE_MODULE_STR, &s_lipiEngineHandle); if (result != SUCCESS) { - qWarning() << QString("Error %1: %2").arg(result).arg(getErrorMessage(result).c_str()); + qWarning() << QString("Error %1: Could not open shared library for module '%2'").arg(result).arg(LIPIENGINE_MODULE_STR); return result; } -- GitLab