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:
parent
d4a22d05df
commit
082c801ebb
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user