ureq error message parsing
This commit is contained in:
parent
1e05155cc1
commit
ece742a1e3
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ fn find_cause(
|
||||||
trace!("std::io::Error {error:?}");
|
trace!("std::io::Error {error:?}");
|
||||||
|
|
||||||
if let Some(msg) = error.get_ref().map(ToString::to_string) {
|
if let Some(msg) = error.get_ref().map(ToString::to_string) {
|
||||||
if msg == "failed to lookup address information: Name does not resolve" {
|
if msg.starts_with("failed to lookup address information") {
|
||||||
ClientError::InvalidParameter(sharry::Parameter::Uri(uri.to_string()))
|
ClientError::InvalidParameter(sharry::Parameter::Uri(uri.to_string()))
|
||||||
} else {
|
} else {
|
||||||
error.into()
|
error.into()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue