[PATCH 2 of 2] Fix error handling
Wald Commits
scm-commit at wald.intevation.org
Wed Apr 23 16:05:58 CEST 2014
# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1398260853 0
# Node ID 34cc448409ec926134103d2dd35f8c43ca071b97
# Parent 6fac87cadbd88fce26ac6a60b50c4d30c38ae15b
Fix error handling
diff -r 6fac87cadbd8 -r 34cc448409ec ui/downloader.cpp
--- a/ui/downloader.cpp Wed Apr 23 13:46:03 2014 +0000
+++ b/ui/downloader.cpp Wed Apr 23 13:47:33 2014 +0000
@@ -213,8 +213,8 @@
remoteModSW = getLastModifiedHeader(mResourceSW);
- if (!remoteModSW.isValid() || !remoteModList.isValid()) {
- qDebug() << "Could not parse headers";
+ if (!remoteModSW.isValid()) {
+ qDebug() << "Could not parse headers for Software";
return;
}
@@ -241,6 +241,10 @@
}
remoteModList = getLastModifiedHeader(mResourceList);
+ if (!remoteModList.isValid()) {
+ qDebug() << "Could not parse headers for List";
+ return;
+ }
if (!mLastModList.isValid() || remoteModList > mLastModList) {
QString dataDirectory = getDataDirectory();
More information about the Trustbridge-commits
mailing list