Data cache shall emit an error message if it fails to save the revision file.

This commit is contained in:
Mathew Sutcliffe
2016-08-09 23:59:29 +01:00
parent 4733c72553
commit 3c82bb3a9c

View File

@@ -441,6 +441,11 @@ namespace BlackMisc
json.insert("pins", toJson(m_pinnedValues));
json.insert("deferrals", toJson(m_deferredValues));
revisionFile.write(QJsonDocument(json).toJson());
if (! revisionFile.checkedClose())
{
CLogMessage(this).error("Failed to write to %1: %2") << revisionFile.fileName() << revisionFile.errorString();
}
}
void CDataCacheRevision::finishUpdate(bool keepPromises)