From bfb66e3000f196031bb0e185e1823b38f0a083b2 Mon Sep 17 00:00:00 2001 From: John Smith Date: Fri, 16 Jun 2023 20:30:54 -0400 Subject: [PATCH] extra error details in the event we see this again --- veilid-core/src/network_manager/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/veilid-core/src/network_manager/mod.rs b/veilid-core/src/network_manager/mod.rs index e7abd622..56de8679 100644 --- a/veilid-core/src/network_manager/mod.rs +++ b/veilid-core/src/network_manager/mod.rs @@ -1105,7 +1105,7 @@ impl NetworkManager { .lookup_and_filter_noderef(relay_key, routing_domain.into(), dial_info_filter)? .ok_or_else(|| eyre!("couldn't look up relay"))?; if !target_node_ref.node_ids().contains(&target_key) { - bail!("target noderef didn't match target key"); + bail!("signalreverse target noderef didn't match target key: {:?} != {} for relay {}", target_node_ref, target_key, relay_key ); } NodeContactMethod::SignalReverse(relay_nr, target_node_ref) } @@ -1114,7 +1114,7 @@ impl NetworkManager { .lookup_and_filter_noderef(relay_key, routing_domain.into(), dial_info_filter)? .ok_or_else(|| eyre!("couldn't look up relay"))?; if target_node_ref.node_ids().contains(&target_key) { - bail!("target noderef didn't match target key"); + bail!("signalholepunch target noderef didn't match target key: {:?} != {} for relay {}", target_node_ref, target_key, relay_key ); } NodeContactMethod::SignalHolePunch(relay_nr, target_node_ref) }