1
0
Fork 0
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:
Nikolay Kim 2018-06-10 10:24:34 -07:00
parent 87a822e093
commit 9dd66dfc22
2 changed files with 5 additions and 4 deletions

View file

@ -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

View file

@ -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),
}
}
}