Divelogs.de upload: report error when unable to open upload file

Silently failing is not cool.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-10-25 14:48:25 +09:00
parent 622fb4f800
commit 3b033a85ac

View file

@ -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));