pull group: add error context for cleanup_unreferenced_files

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2022-05-11 19:02:37 +02:00
parent 9ccf933be5
commit fe79687c59
1 changed files with 3 additions and 1 deletions

View File

@ -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(())
}