ureq error message parsing

This commit is contained in:
Jörn-Michael Miehe 2025-06-24 02:08:35 +00:00
parent 1e05155cc1
commit ece742a1e3

View file

@ -32,7 +32,7 @@ fn find_cause(
trace!("std::io::Error {error:?}");
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()))
} else {
error.into()