mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-27 17:22:57 +01:00
better name for error
This commit is contained in:
parent
87a822e093
commit
9dd66dfc22
@ -44,7 +44,8 @@
|
||||
* Removed deprecated `HttpServer::threads()`, use
|
||||
[HttpServer::workers()](https://actix.rs/actix-web/actix_web/server/struct.HttpServer.html#method.workers) instead.
|
||||
|
||||
|
||||
* Renamed `client::ClientConnectorError::Connector` to
|
||||
`client::ClientConnectorError::Resolver`
|
||||
|
||||
|
||||
## 0.6
|
||||
|
@ -137,9 +137,9 @@ pub enum ClientConnectorError {
|
||||
#[fail(display = "{}", _0)]
|
||||
SslError(#[cause] TlsError),
|
||||
|
||||
/// Connection error
|
||||
/// Resolver error
|
||||
#[fail(display = "{}", _0)]
|
||||
Connector(#[cause] ResolverError),
|
||||
Resolver(#[cause] ResolverError),
|
||||
|
||||
/// Connection took too long
|
||||
#[fail(display = "Timeout while establishing connection")]
|
||||
@ -158,7 +158,7 @@ impl From<ResolverError> for ClientConnectorError {
|
||||
fn from(err: ResolverError) -> ClientConnectorError {
|
||||
match err {
|
||||
ResolverError::Timeout => ClientConnectorError::Timeout,
|
||||
_ => ClientConnectorError::Connector(err),
|
||||
_ => ClientConnectorError::Resolver(err),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user