fix(#1397): point send-refused message at <parent> sentinel not stale manager name

This commit is contained in:
damocles 2026-06-05 18:36:42 +02:00
commit b33b3f315c

View file

@ -1960,9 +1960,10 @@ fn check_send_allowed(to: &str) -> Result<(), String> {
} }
Err(format!( Err(format!(
"send refused: recipient '{to}' not in hyperhive.allowedRecipients \ "send refused: recipient '{to}' not in hyperhive.allowedRecipients \
(configured in agent.nix). Allowed: {allow:?}. The manager is \ (configured in agent.nix). Allowed: {allow:?}. Your structural \
always reachable route through `send(to: \"manager\", …)` if \ parent is always reachable route through `send(to: \"{}\", …)` \
you need to reach someone outside the allow-list." if you need to reach someone outside the allow-list.",
hive_sh4re::PARENT_RECIPIENT
)) ))
} }