summaryrefslogtreecommitdiffstats
path: root/src/plugins/canbus/tinycan/tinycanbackend.cpp
diff options
context:
space:
mode:
authorAndre Hartmann <aha_1980@gmx.de>2016-07-31 09:40:57 +0200
committerAndré Hartmann <aha_1980@gmx.de>2016-08-01 09:33:51 +0000
commitf22af5d595749041e353b9248208ca93355e901c (patch)
treeeb3f5dd79d227c425a38a00033f712dcac6324fe /src/plugins/canbus/tinycan/tinycanbackend.cpp
parent36b24743ccecd56b132cd81f05842943ff716943 (diff)
CAN: Better error messages when loading dynamic libraries
Make use of the detailed (and localized) error messages that QLibrary already provides. Example: Cannot load library pcanbasic: \ (pcanbasic: cannot open shared object file: No such file or directory) Change-Id: I3f4fd42d1872a00f2c4ecc6172ccc17995c7888e Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/plugins/canbus/tinycan/tinycanbackend.cpp')
-rw-r--r--src/plugins/canbus/tinycan/tinycanbackend.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/canbus/tinycan/tinycanbackend.cpp b/src/plugins/canbus/tinycan/tinycanbackend.cpp
index 88edf25..082b0d0 100644
--- a/src/plugins/canbus/tinycan/tinycanbackend.cpp
+++ b/src/plugins/canbus/tinycan/tinycanbackend.cpp
@@ -61,7 +61,7 @@ bool TinyCanBackend::canCreate(QString *errorReason)
#else
static bool symbolsResolved = resolveSymbols(mhstcanLibrary());
if (!symbolsResolved) {
- *errorReason = tr("The MHSTCAN runtime library is not found");
+ *errorReason = mhstcanLibrary()->errorString();
return false;
}
return true;