Skip to content

Commit

Permalink
debug build
Browse files Browse the repository at this point in the history
  • Loading branch information
harshdoesdev committed Oct 6, 2023
1 parent 2294d34 commit f39cb75
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/commands/download.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,9 @@ pub async fn download(
)?;
let output_artifact_exists = output_exists_req.send().await?;

if output_artifact_exists {
println!("Build artifacts found");
} else {
println!("Build artifacts not found");
return Ok(());
}
assert!(output_artifact_exists, "Build artifacts not found");

println!("Downloading build artifacts");
println!("Build artifacts found. Downloading build artifacts...");

let mut output_dir_archive = tempfile::tempfile()?;
let mut output_get_req = remote_client.get(
Expand All @@ -43,7 +38,7 @@ pub async fn download(

let output_get_res = output_get_req.get().await?;

assert!(output_get_res.status().is_success(), "Build artifacts could not be downloaded.");
assert!(output_get_res.status().is_success(), "Build artifacts could not be downloaded: {:#?}", output_get_res);

println!("Build artifacts downloaded");

Expand Down

0 comments on commit f39cb75

Please sign in to comment.