Update ecstore/src/disk/local.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
DamonXue
2025-04-09 08:13:45 +08:00
committed by GitHub
parent 00a83c56d5
commit b128cc9db4
+4 -1
View File
@@ -384,7 +384,10 @@ impl LocalDisk {
kind => {
if kind.to_string() != "directory not empty" {
warn!("delete_file remove_dir {:?} err {}", &delete_path, kind.to_string());
return Err(Error::new(DiskError::FileAccessDenied));
return Err(Error::new(FileAccessDeniedWithContext {
path: delete_path.clone(),
source: err,
}));
}
}
}