summaryrefslogtreecommitdiffstats
path: root/src/util.rs
diff options
context:
space:
mode:
authorLibravatar bigfoot547 <[email protected]>2025-01-23 15:29:34 -0600
committerLibravatar bigfoot547 <[email protected]>2025-01-23 15:29:34 -0600
commit075bee27ee6f9fe277a9f08e787d2cc607aaebd5 (patch)
treef2fcfae7faa6f0b8c625a23222551fc473a01257 /src/util.rs
parentfix neoforge regression (diff)
fix jre cleanup on windows
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