diff options
author | Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> | 2021-11-09 12:11:50 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-09 12:11:50 +0000 |
commit | 4b3e30c276ee7fab1896b3b0386847d3000fea32 (patch) | |
tree | be81a86ad66955a206ee87c4afd45b8e3a222c2a /synapse/rest | |
parent | Include cross-signing signatures when syncing remote devices for the first ti... (diff) | |
download | synapse-4b3e30c276ee7fab1896b3b0386847d3000fea32.tar.xz |
Fix typo in `RelationAggregationPaginationServlet` error response (#11278)
Diffstat (limited to '')
-rw-r--r-- | synapse/rest/client/relations.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/rest/client/relations.py b/synapse/rest/client/relations.py index 58f6699073..184cfbe196 100644 --- a/synapse/rest/client/relations.py +++ b/synapse/rest/client/relations.py @@ -298,7 +298,9 @@ class RelationAggregationPaginationServlet(RestServlet): raise SynapseError(404, "Unknown parent event.") if relation_type not in (RelationTypes.ANNOTATION, None): - raise SynapseError(400, "Relation type must be 'annotation'") + raise SynapseError( + 400, f"Relation type must be '{RelationTypes.ANNOTATION}'" + ) limit = parse_integer(request, "limit", default=5) from_token_str = parse_string(request, "from") |