extra error details in the event we see this again

This commit is contained in:
John Smith 2023-06-16 20:30:54 -04:00
parent 4e37115c8f
commit bfb66e3000

View File

@ -1105,7 +1105,7 @@ impl NetworkManager {
.lookup_and_filter_noderef(relay_key, routing_domain.into(), dial_info_filter)? .lookup_and_filter_noderef(relay_key, routing_domain.into(), dial_info_filter)?
.ok_or_else(|| eyre!("couldn't look up relay"))?; .ok_or_else(|| eyre!("couldn't look up relay"))?;
if !target_node_ref.node_ids().contains(&target_key) { 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) 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)? .lookup_and_filter_noderef(relay_key, routing_domain.into(), dial_info_filter)?
.ok_or_else(|| eyre!("couldn't look up relay"))?; .ok_or_else(|| eyre!("couldn't look up relay"))?;
if target_node_ref.node_ids().contains(&target_key) { 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) NodeContactMethod::SignalHolePunch(relay_nr, target_node_ref)
} }