summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-10-25 14:48:25 +0900
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-10-25 14:48:25 +0900
commit3b033a85acced1da17e8dde46bfaae3c8bfdf9d0 (patch)
tree87baf0216594ca04d7bb99edc0bec082f08455fc /qt-ui
parent622fb4f800f560c9145ec3a41d9c31901d8f6acc (diff)
downloadsubsurface-3b033a85acced1da17e8dde46bfaae3c8bfdf9d0.tar.gz
Divelogs.de upload: report error when unable to open upload file
Silently failing is not cool. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/subsurfacewebservices.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/subsurfacewebservices.cpp b/qt-ui/subsurfacewebservices.cpp
index 1f2eb24b9..5e2316d30 100644
--- a/qt-ui/subsurfacewebservices.cpp
+++ b/qt-ui/subsurfacewebservices.cpp
@@ -695,6 +695,8 @@ void DivelogsDeWebServices::prepareDivesForUpload(bool selected)
f.close();
f.remove();
return;
+ } else {
+ report_error("Failed to open upload file %s\n", qPrintable(filename));
}
} else {
report_error("Failed to create upload file %s\n", qPrintable(filename));