Skip to content

Commit

Permalink
Hotfix for #6203.
Browse files Browse the repository at this point in the history
  • Loading branch information
mwu-tow committed Apr 5, 2023
1 parent 7fdc3c6 commit 45d1b87
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions build/ci_utils/src/github/release.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,11 @@ pub trait IsReleaseExt: IsRelease + Sync {

async move {
ensure!(content_length > 0, "Release asset file cannot be empty.");
crate::io::web::execute(request).await?.json().await.with_context(|| {
format!("Failed to deserialize the response from the GitHub API to an asset.")
})
crate::io::web::execute(request)
.await?
.json()
.await
.context("Failed to deserialize the response from the GitHub API to an asset.")
}
.with_context(move || {
format!(
Expand Down

0 comments on commit 45d1b87

Please sign in to comment.