From 3b033a85acced1da17e8dde46bfaae3c8bfdf9d0 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 25 Oct 2015 14:48:25 +0900 Subject: Divelogs.de upload: report error when unable to open upload file Silently failing is not cool. Signed-off-by: Dirk Hohndel --- qt-ui/subsurfacewebservices.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qt-ui') 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)); -- cgit v1.2.3-70-g09d2