]> git.proxmox.com Git - proxmox-backup.git/commit - proxmox-backup-client/src/main.rs
client: change anyhow Error display representation
authorChristian Ebner <c.ebner@proxmox.com>
Sat, 25 Nov 2023 10:13:32 +0000 (11:13 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 25 Nov 2023 15:05:09 +0000 (16:05 +0100)
commit7e4815bab60db0e204f6c798b0be28be19134ea0
tree020284904164212abf6a34a333fb5c089dd79bb1
parent053b29416f67bdbc661560939b4c0706c5752039
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>
proxmox-backup-client/src/main.rs