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 }