diff options
Diffstat (limited to 'packages/meshbay-common/src')
| -rw-r--r-- | packages/meshbay-common/src/meshbay_common/handshake.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/meshbay-common/src/meshbay_common/handshake.py b/packages/meshbay-common/src/meshbay_common/handshake.py index 65b4e85..4d2cac2 100644 --- a/packages/meshbay-common/src/meshbay_common/handshake.py +++ b/packages/meshbay-common/src/meshbay_common/handshake.py @@ -278,7 +278,11 @@ def authorize_token( raise HandshakeError("Not a member of this group", code="not_a_member") if hosted_groups is not None and group_id not in hosted_groups: - raise HandshakeError("Group not hosted on this node") + # Coded, because a client handed several nodes for one group has to tell + # "this node cannot serve it, try the next one" apart from "you, in this + # browser, must do something first". Uncoded it was neither, and a node + # wrongly registered for a group took that group down for everyone. + raise HandshakeError("Group not hosted on this node", code="not_hosted") return AuthorizedPeer( user_id=user_id, |