mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 12:35:43 +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("pins", toJson(m_pinnedValues));
|
||||||
json.insert("deferrals", toJson(m_deferredValues));
|
json.insert("deferrals", toJson(m_deferredValues));
|
||||||
revisionFile.write(QJsonDocument(json).toJson());
|
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)
|
void CDataCacheRevision::finishUpdate(bool keepPromises)
|
||||||
|
|||||||
Reference in New Issue
Block a user