Do not ignore error on fs::create_dir_all

This commit is contained in:
Felix Schütt
2022-12-02 14:51:22 +01:00
parent 2e419eba94
commit 2c88eb83a8

View File

@@ -456,7 +456,9 @@ impl CreateExe {
.and_then(|parent| Some(parent.join(target_file_path.file_stem()?)))
.unwrap_or_else(|| target_file_path.clone());
let _ = std::fs::create_dir_all(&target_file_path);
std::fs::create_dir_all(&target_file_path)
.map_err(|e| anyhow::anyhow!("{e}"))
.context(anyhow::anyhow!("{}", target_file_path.display()))?;
let files = untar(local_tarball.to_path_buf(), target_file_path.clone())?;
let tarball_dir = target_file_path.canonicalize().unwrap_or(target_file_path);