From c1caa4a7cdbee9ed155777839cd872dfd320f74c Mon Sep 17 00:00:00 2001 From: rustdesk Date: Sun, 12 Jun 2022 22:07:04 +0800 Subject: [PATCH] more error --- libs/hbb_common/src/socket_client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/hbb_common/src/socket_client.rs b/libs/hbb_common/src/socket_client.rs index efea489a4..72ab73f16 100644 --- a/libs/hbb_common/src/socket_client.rs +++ b/libs/hbb_common/src/socket_client.rs @@ -65,7 +65,7 @@ pub async fn connect_tcp<'t, T: IntoTargetAddr<'t>>( let addr = std::net::ToSocketAddrs::to_socket_addrs(&target_addr)? .filter(|x| x.is_ipv4()) .next() - .context("Invalid target addr")?; + .context("Invalid target addr, no valid ipv4 address can be resolved.")?; Ok(FramedStream::new(addr, local, ms_timeout).await?) } }