diff options
author | Erik Johnston <erik@matrix.org> | 2019-01-29 10:36:46 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2019-01-29 10:36:46 +0000 |
commit | 9fa3c6ffa313bba36f24719ab78af735ff0c14cd (patch) | |
tree | a1dbdf8bf2404771888e8b102c8c8ee944b44b1c /synapse/events | |
parent | Fold validate into validate_new (diff) | |
download | synapse-9fa3c6ffa313bba36f24719ab78af735ff0c14cd.tar.xz |
Fix up error messages
Diffstat (limited to 'synapse/events')
-rw-r--r-- | synapse/events/validator.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/events/validator.py b/synapse/events/validator.py index 5c799493fb..4fa03501f8 100644 --- a/synapse/events/validator.py +++ b/synapse/events/validator.py @@ -52,7 +52,7 @@ class EventValidator(object): for s in event_strings: if not isinstance(getattr(event, s), string_types): - raise SynapseError(400, "Not '%s' a string type" % (s,)) + raise SynapseError(400, "'%s' not a string type" % (s,)) if event.type == EventTypes.Message: content_strings = [ @@ -119,4 +119,4 @@ class EventValidator(object): if s not in d: raise SynapseError(400, "'%s' not in content" % (s,)) if not isinstance(d[s], string_types): - raise SynapseError(400, "Not '%s' a string type" % (s,)) + raise SynapseError(400, "'%s' not a string type" % (s,)) |