1
0
mirror of https://github.com/gilbertchen/duplicacy synced 2025-12-06 00:03:38 +00:00

Don't attemp to load verified_chunks when it doesn't exist.

This commit is contained in:
Gilbert Chen
2020-10-09 14:22:45 -04:00
parent d7c1903d5a
commit 7f834e84f6

View File

@@ -1030,8 +1030,10 @@ func (manager *SnapshotManager) CheckSnapshots(snapshotID string, revisionsToChe
manager.fileChunk.Reset(false)
err = manager.snapshotCache.DownloadFile(0, verifiedChunksFile, manager.fileChunk)
if err != nil && !os.IsNotExist(err) {
LOG_WARN("SNAPSHOT_VERIFY", "Failed to load the file containing verified chunks: %v", err)
if err != nil {
if !os.IsNotExist(err) {
LOG_WARN("SNAPSHOT_VERIFY", "Failed to load the file containing verified chunks: %v", err)
}
} else {
err = json.Unmarshal(manager.fileChunk.GetBytes(), &verifiedChunks)
if err != nil {