mirror of
https://git.proxmox.com/git/proxmox-backup
synced 2025-10-04 09:34:02 +00:00
client: change anyhow Error display representation
Improve error message output by showing the full Error context, using the alternate selector '{:#}" [0]. Without this, only the outermost context is displayed, which in case of pxar extraction errors is mostly not enough to find the underlying issue. [0] https://docs.rs/anyhow/1.0.69/anyhow/struct.Error.html#display-representations Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
This commit is contained in:
parent
053b29416f
commit
7e4815bab6
@ -1453,7 +1453,7 @@ async fn restore(
|
||||
},
|
||||
options,
|
||||
)
|
||||
.map_err(|err| format_err!("error extracting archive - {}", err))?;
|
||||
.map_err(|err| format_err!("error extracting archive - {:#}", err))?;
|
||||
} else {
|
||||
let mut writer = std::fs::OpenOptions::new()
|
||||
.write(true)
|
||||
|
Loading…
Reference in New Issue
Block a user