From ece742a1e3f461bc011d429425e87dd3d645274d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= <40151420+ldericher@users.noreply.github.com> Date: Tue, 24 Jun 2025 02:08:35 +0000 Subject: [PATCH] ureq error message parsing --- src/impl_ureq.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/impl_ureq.rs b/src/impl_ureq.rs index d8c50fd..ccccfb2 100644 --- a/src/impl_ureq.rs +++ b/src/impl_ureq.rs @@ -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()