diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2018-06-21 15:50:11 +0900 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-06-21 16:15:48 +0900 |
commit | b7619553fd848f946683f257ec1109bb3cc70df0 (patch) | |
tree | 8c5ffd6e5120c933f54aa96d1cf4d0e5fa1771e2 /core | |
parent | 05a00f31e9d6b826b87c5f3bfc5f38251bf7cf12 (diff) | |
download | subsurface-b7619553fd848f946683f257ec1109bb3cc70df0.tar.gz |
core: print the correct message code for download failures
We filled in the missing information and then printed the wrong string.
This fixes that and also makes the strings slightly easier to understand.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core')
-rw-r--r-- | core/downloadfromdcthread.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/core/downloadfromdcthread.cpp b/core/downloadfromdcthread.cpp index 0027bdcea..3c0470852 100644 --- a/core/downloadfromdcthread.cpp +++ b/core/downloadfromdcthread.cpp @@ -49,10 +49,12 @@ void DownloadThread::run() errorText = do_uemis_import(internalData); else errorText = do_libdivecomputer_import(internalData); - if (errorText) + if (errorText) { error = str_error(errorText, internalData->devname, internalData->vendor, internalData->product); - - qDebug() << "Finishing the thread" << errorText << "dives downloaded" << downloadTable.nr; + qDebug() << "Finishing download thread:" << error; + } else { + qDebug() << "Finishing download thread:" << downloadTable.nr << "dives downloaded"; + } auto dcs = SettingsObjectWrapper::instance()->dive_computer_settings; dcs->setVendor(internalData->vendor); dcs->setProduct(internalData->product); |