Update ecstore/src/disk/local.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
DamonXue
2025-04-08 17:42:02 +08:00
committed by GitHub
parent 0ed8a8dd19
commit 00a83c56d5

View File

@@ -396,7 +396,10 @@ impl LocalDisk {
ErrorKind::NotFound => (),
_ => {
warn!("delete_file remove_file {:?} err {:?}", &delete_path, &err);
return Err(Error::new(DiskError::FileAccessDenied));
return Err(Error::new(FileAccessDeniedWithContext {
path: delete_path.clone(),
source: err,
}));
}
}
}