From 05c75a5933771dcaf3ce3b6f378f997c65d6b8d9 Mon Sep 17 00:00:00 2001 From: Christien Rioux Date: Mon, 17 Jul 2023 18:55:42 -0400 Subject: [PATCH] more error detail --- veilid-core/src/network_manager/send_data.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/veilid-core/src/network_manager/send_data.rs b/veilid-core/src/network_manager/send_data.rs index fea17fe8..8b07da43 100644 --- a/veilid-core/src/network_manager/send_data.rs +++ b/veilid-core/src/network_manager/send_data.rs @@ -106,7 +106,7 @@ impl NetworkManager { // First try to send data to the last socket we've seen this peer on let Some(connection_descriptor) = target_node_ref.last_connection() else { return Ok(NetworkResult::no_connection_other( - "should have found an existing connection", + format!("should have found an existing connection: {}", target_node_ref) )); }; @@ -138,7 +138,7 @@ impl NetworkManager { // Try to send data to the last socket we've seen this peer on let Some(connection_descriptor) = target_node_ref.last_connection() else { return Ok(NetworkResult::no_connection_other( - "Node is not reachable and has no existing connection", + format!("Node is not reachable and has no existing connection: {}", target_node_ref) )); }; @@ -149,7 +149,7 @@ impl NetworkManager { .is_some() { return Ok(NetworkResult::no_connection_other( - "failed to send to existing connection", + format!("failed to send to existing connection: {:?}", connection_descriptor) )); }