mirror of
https://github.com/wofferl/proxmox-backup-arm64
synced 2025-12-06 00:13:41 +00:00
33 lines
1.1 KiB
Diff
33 lines
1.1 KiB
Diff
commit 6174f9b3c7d1cf366de230798d4bf9e271235dbe
|
|
Author: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
|
Date: Fri Nov 7 12:33:15 2025 +0100
|
|
|
|
pxar extract: code style improvement for error logging
|
|
|
|
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
|
|
|
diff --git a/pbs-client/src/pxar/extract.rs b/pbs-client/src/pxar/extract.rs
|
|
index 61f29349..0257201d 100644
|
|
--- a/pbs-client/src/pxar/extract.rs
|
|
+++ b/pbs-client/src/pxar/extract.rs
|
|
@@ -1333,15 +1333,12 @@ where
|
|
}
|
|
.await
|
|
{
|
|
- let display_string = entry.path().display().to_string();
|
|
error!(
|
|
- "error extracting {}: {}",
|
|
- if matches!(entry.kind(), EntryKind::GoodbyeTable) {
|
|
- "<directory>"
|
|
- } else {
|
|
- &display_string
|
|
+ "error extracting {}: {err}",
|
|
+ match entry.kind() {
|
|
+ EntryKind::GoodbyeTable => "<directory>",
|
|
+ _ => &entry.path().display().to_string(),
|
|
},
|
|
- err
|
|
);
|
|
}
|
|
|