Skip to content

Commit

Permalink
cli: add more details if untar fails
Browse files Browse the repository at this point in the history
  • Loading branch information
connor4312 committed Sep 21, 2023
1 parent 4039416 commit c11f2f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cli/src/util/tar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<bool, WrappedError> {
Expand Down Expand Up @@ -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::<Result<Vec<PathBuf>, WrappedError>>()?;
Expand Down

0 comments on commit c11f2f7

Please sign in to comment.