From 4fa7137b059bded83324a3e5cbe9ad56f26360e4 Mon Sep 17 00:00:00 2001 From: Connor Peet Date: Thu, 21 Sep 2023 11:41:52 -0700 Subject: [PATCH] cli: add more details if untar fails For #192647 --- cli/src/util/tar.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/src/util/tar.rs b/cli/src/util/tar.rs index 248f63f9720..0a5496411f7 100644 --- a/cli/src/util/tar.rs +++ b/cli/src/util/tar.rs @@ -10,6 +10,7 @@ use std::io::Seek; use std::path::{Path, PathBuf}; use tar::Archive; +use super::errors::wrapdbg; use super::io::ReportCopyProgress; fn should_skip_first_segment(file: &fs::File) -> Result { @@ -93,7 +94,7 @@ where entry .unpack(&path) - .map_err(|e| wrap(e, format!("error unpacking {}", path.display())))?; + .map_err(|e| wrapdbg(e, format!("error unpacking {}", path.display())))?; Ok(path) }) .collect::, WrappedError>>()?;