Skip to content

Commit

Permalink
do not stringify http tcp proxy error
Browse files Browse the repository at this point in the history
  • Loading branch information
GlenDC committed Nov 8, 2024
1 parent ab12ccf commit 3660c26
Showing 1 changed file with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,12 @@ where
.await
.map_err(|err| match address.as_ref() {
Some(address) => OpaqueError::from_std(HttpProxyError::Transport(
OpaqueError::from_display(format!(
"establish connection to proxy {} (protocol: {:?}): {}",
address.authority,
address.protocol,
err.into(),
))
.into_boxed(),
OpaqueError::from_boxed(err.into())
.context(format!(
"establish connection to proxy {} (protocol: {:?})",
address.authority, address.protocol,
))
.into_boxed(),
)),
None => {
OpaqueError::from_boxed(err.into()).context("establish connection target")
Expand Down

0 comments on commit 3660c26

Please sign in to comment.