From b128cc9db46620ed4f2b3955578b6b99fea56d6b Mon Sep 17 00:00:00 2001 From: DamonXue Date: Wed, 9 Apr 2025 08:13:45 +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 290a80432..13c0ea26d 100644 --- a/ecstore/src/disk/local.rs +++ b/ecstore/src/disk/local.rs @@ -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, + })); } } }