mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
Data cache shall emit an error message if it fails to save the revision file.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user