From 7e4815bab60db0e204f6c798b0be28be19134ea0 Mon Sep 17 00:00:00 2001 From: Christian Ebner Date: Sat, 25 Nov 2023 11:13:32 +0100 Subject: [PATCH] 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 --- proxmox-backup-client/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxmox-backup-client/src/main.rs b/proxmox-backup-client/src/main.rs index 1a13291a..9b680f62 100644 --- a/proxmox-backup-client/src/main.rs +++ b/proxmox-backup-client/src/main.rs @@ -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) -- 2.39.2