5
0
mirror of git://git.proxmox.com/git/proxmox-backup.git synced 2025-01-20 14:03:53 +03:00

file restore: show more error context when extraction fails

Otherwise the context swallows the actual, underlying error message.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
This commit is contained in:
Christian Ebner 2024-04-24 12:02:14 +02:00 committed by Fabian Grünbichler
parent d4a22d05df
commit 082c801ebb

View File

@ -490,7 +490,9 @@ async fn extract(
};
let decoder = Accessor::new(reader, archive_size).await?;
extract_to_target(decoder, &path, target, format, zstd).await?;
extract_to_target(decoder, &path, target, format, zstd)
.await
.map_err(|err| format_err!("error extracting archive - {err:#}"))?;
}
ExtractPath::VM(file, path) => {
let details = SnapRestoreDetails {