commit 6174f9b3c7d1cf366de230798d4bf9e271235dbe Author: Thomas Lamprecht Date: Fri Nov 7 12:33:15 2025 +0100 pxar extract: code style improvement for error logging Signed-off-by: Thomas Lamprecht 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) { - "" - } else { - &display_string + "error extracting {}: {err}", + match entry.kind() { + EntryKind::GoodbyeTable => "", + _ => &entry.path().display().to_string(), }, - err ); }