From e5a72ddf4f9f547eaed168fd5b698f29c7b89285 Mon Sep 17 00:00:00 2001 From: "John K. Luebs" Date: Wed, 4 Oct 2023 11:40:33 -0500 Subject: [PATCH] minor: missing variable assignment in CheckSnapshot, struct-tag --- src/duplicacy_config.go | 4 ++-- src/duplicacy_snapshotmanager.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/duplicacy_config.go b/src/duplicacy_config.go index 24b4386..2414775 100644 --- a/src/duplicacy_config.go +++ b/src/duplicacy_config.go @@ -85,8 +85,8 @@ type Config struct { FileKey []byte `json:"-"` // for erasure coding - DataShards int `json:'data-shards'` - ParityShards int `json:'parity-shards'` + DataShards int `json:"data-shards"` + ParityShards int `json:"parity-shards"` // for RSA encryption rsaPrivateKey *rsa.PrivateKey diff --git a/src/duplicacy_snapshotmanager.go b/src/duplicacy_snapshotmanager.go index 0482512..97819a6 100644 --- a/src/duplicacy_snapshotmanager.go +++ b/src/duplicacy_snapshotmanager.go @@ -2568,7 +2568,7 @@ func (manager *SnapshotManager) CheckSnapshot(snapshot *Snapshot) (err error) { } if entry.EndChunk < entry.StartChunk { - fmt.Errorf("The file %s starts at chunk %d and ends at chunk %d", + err = fmt.Errorf("The file %s starts at chunk %d and ends at chunk %d", entry.Path, entry.StartChunk, entry.EndChunk) return false }