diff options
author | Erik Johnston <erik@matrix.org> | 2019-05-25 14:09:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-25 14:09:27 +0100 |
commit | 338dca58c094adf94a943f906fdb54ba15da7831 (patch) | |
tree | 7c0b60dff98782a8e87a942afd4a646d030a19ca /synapse | |
parent | Simplification to Keyring.wait_for_previous_lookups. (#5250) (diff) | |
parent | Add changelog (diff) | |
download | synapse-338dca58c094adf94a943f906fdb54ba15da7831.tar.xz |
Merge pull request #5257 from aaronraimist/fix-error-code-publicrooms
Fix error code for invalid parameter
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/http/servlet.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/http/servlet.py b/synapse/http/servlet.py index 528125e737..197c652850 100644 --- a/synapse/http/servlet.py +++ b/synapse/http/servlet.py @@ -55,7 +55,7 @@ def parse_integer_from_args(args, name, default=None, required=False): return int(args[name][0]) except Exception: message = "Query parameter %r must be an integer" % (name,) - raise SynapseError(400, message) + raise SynapseError(400, message, errcode=Codes.INVALID_PARAM) else: if required: message = "Missing integer query parameter %r" % (name,) |