diff options
Diffstat (limited to 'core/downloadfromdcthread.cpp')
-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); |