Skip to content

Commit

Permalink
Fix formatting of URL in Client::fetch_debug_info
Browse files Browse the repository at this point in the history
Similar to what we did in commit 5890b93 ("Fix formatting of build
ID in Client::fetch_debug_info"), make sure to format the URL correctly
on error return.

Reported-by: Javier Honduvilla Coto <javierhonduco@gmail.com>
Signed-off-by: Daniel Müller <deso@posteo.net>
  • Loading branch information
d-e-s-o committed Nov 15, 2024
1 parent 5ae672a commit 588b78c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ impl Client {
let result = self
.client
.execute(Request::new(Method::GET, url.clone()))
.context("failed to issue request to `{url}`");
.with_context(|| format!("failed to issue request to `{url}`"));
let response = match result {
Ok(response) => response,
Err(err) => {
Expand Down

0 comments on commit 588b78c

Please sign in to comment.