From 00a83c56d5e6cb56348fc74f2e6e91f9cb4f796e Mon Sep 17 00:00:00 2001 From: DamonXue Date: Tue, 8 Apr 2025 17:42:02 +0800 Subject: [PATCH] Update ecstore/src/disk/local.rs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- ecstore/src/disk/local.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ecstore/src/disk/local.rs b/ecstore/src/disk/local.rs index 8c0517ca3..290a80432 100644 --- a/ecstore/src/disk/local.rs +++ b/ecstore/src/disk/local.rs @@ -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, + })); } } }