mirror of
https://github.com/actix/actix-web.git
synced 2024-12-18 22:26:37 +00:00
better name for error
This commit is contained in:
parent
87a822e093
commit
9dd66dfc22
2 changed files with 5 additions and 4 deletions
|
@ -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 a new issue