From fe79687c59ed2b681d2fdeee79089065a6bbddcf Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 11 May 2022 19:02:37 +0200 Subject: [PATCH] pull group: add error context for cleanup_unreferenced_files Signed-off-by: Thomas Lamprecht --- src/server/pull.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/server/pull.rs b/src/server/pull.rs index 452988f8..07d5dab1 100644 --- a/src/server/pull.rs +++ b/src/server/pull.rs @@ -497,7 +497,9 @@ async fn pull_snapshot( try_client_log_download(worker, reader, &client_log_name).await?; } - snapshot.cleanup_unreferenced_files(&manifest)?; + snapshot + .cleanup_unreferenced_files(&manifest) + .map_err(|err| format_err!("failed to cleanup unreferenced files - {err}"))?; Ok(()) }