summaryrefslogtreecommitdiffstats
path: root/src/util.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.rs')
-rw-r--r--src/util.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util.rs b/src/util.rs
index 5ea0f26..0685848 100644
--- a/src/util.rs
+++ b/src/util.rs
@@ -164,8 +164,8 @@ pub async fn should_download(path: impl AsRef<Path>, expect_size: Option<usize>,
debug!("File {} is missing, downloading it.", path.display());
Ok(true)
},
- Err(FileVerifyError::Integrity(_, e)) => {
- warn!("Integrity error on file: {}", e);
+ Err(FileVerifyError::Integrity(p, e)) => {
+ warn!("Integrity error on file {}: {}", p.display(), e);
// try to delete the file since it's bad
let _ = fs::remove_file(path).await