mirror of
https://github.com/gilbertchen/duplicacy
synced 2025-12-18 01:03:25 +00:00
Don't attemp to load verified_chunks when it doesn't exist.
This commit is contained in:
@@ -1030,8 +1030,10 @@ func (manager *SnapshotManager) CheckSnapshots(snapshotID string, revisionsToChe
|
|||||||
|
|
||||||
manager.fileChunk.Reset(false)
|
manager.fileChunk.Reset(false)
|
||||||
err = manager.snapshotCache.DownloadFile(0, verifiedChunksFile, manager.fileChunk)
|
err = manager.snapshotCache.DownloadFile(0, verifiedChunksFile, manager.fileChunk)
|
||||||
if err != nil && !os.IsNotExist(err) {
|
if err != nil {
|
||||||
|
if !os.IsNotExist(err) {
|
||||||
LOG_WARN("SNAPSHOT_VERIFY", "Failed to load the file containing verified chunks: %v", err)
|
LOG_WARN("SNAPSHOT_VERIFY", "Failed to load the file containing verified chunks: %v", err)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
err = json.Unmarshal(manager.fileChunk.GetBytes(), &verifiedChunks)
|
err = json.Unmarshal(manager.fileChunk.GetBytes(), &verifiedChunks)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user