src/client/http_client.rs: store raw data/blob size in index.json

This commit is contained in:
Dietmar Maurer
2019-10-02 10:47:20 +02:00
parent f16aea687a
commit ff01c1e393
2 changed files with 6 additions and 7 deletions

View File

@ -913,7 +913,7 @@ fn verify_index_file(backup_index: &Value, name: &str, csum: &[u8; 32], size: u6
None => bail!("index does not contain property 'size' for file '{}'", name),
Some(expected_size) => {
if expected_size != size {
bail!("verify index failed - wrong size for file '{}'", name);
bail!("verify index failed - wrong size for file '{}' ({} != {}", name, expected_size, size);
}
}
};