diff --git a/rama-http-backend/src/client/proxy/layer/proxy_connector/service.rs b/rama-http-backend/src/client/proxy/layer/proxy_connector/service.rs index 61f5442f..854ff371 100644 --- a/rama-http-backend/src/client/proxy/layer/proxy_connector/service.rs +++ b/rama-http-backend/src/client/proxy/layer/proxy_connector/service.rs @@ -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")