mirror of
https://git.proxmox.com/git/proxmox-backup
synced 2025-04-30 20:38:38 +00: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?;
|
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) => {
|
ExtractPath::VM(file, path) => {
|
||||||
let details = SnapRestoreDetails {
|
let details = SnapRestoreDetails {
|
||||||
|
Loading…
Reference in New Issue
Block a user