Skip to content

Commit

Permalink
dont unwrap
Browse files Browse the repository at this point in the history
  • Loading branch information
0xbe7a committed Dec 20, 2023
1 parent d504a69 commit 93c4e9c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/upload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,10 @@ pub async fn upload_package_to_artifactory(
url: Url,
channel: String,
) -> miette::Result<()> {
let package_dir = tempfile::tempdir().unwrap();
let package_dir = tempfile::tempdir()
.into_diagnostic()
.wrap_err("Creating temporary directory failed")?;

rattler_package_streaming::fs::extract(&package_file, package_dir.path()).into_diagnostic()?;

let index_json = IndexJson::from_package_directory(package_dir.path()).into_diagnostic()?;
Expand Down

0 comments on commit 93c4e9c

Please sign in to comment.