summary refs log tree commit diff
path: root/synapse/rest/client/relations.py
diff options
context:
space:
mode:
authorAndrew Morgan <1342360+anoadragon453@users.noreply.github.com>2021-11-09 12:11:50 +0000
committerGitHub <noreply@github.com>2021-11-09 12:11:50 +0000
commit4b3e30c276ee7fab1896b3b0386847d3000fea32 (patch)
treebe81a86ad66955a206ee87c4afd45b8e3a222c2a /synapse/rest/client/relations.py
parentInclude cross-signing signatures when syncing remote devices for the first ti... (diff)
downloadsynapse-4b3e30c276ee7fab1896b3b0386847d3000fea32.tar.xz
Fix typo in `RelationAggregationPaginationServlet` error response (#11278)
Diffstat (limited to 'synapse/rest/client/relations.py')
-rw-r--r--synapse/rest/client/relations.py4
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")