summary refs log tree commit diff
path: root/synapse/http
diff options
context:
space:
mode:
authorAaron Raimist <aaron@raim.ist>2019-05-24 17:13:10 -0500
committerAaron Raimist <aaron@raim.ist>2019-05-24 17:13:16 -0500
commit2d4853039f37a16cc898c7dba1a4a34f67ca1062 (patch)
tree777d2e2e72c073b4dfaf2b559bd4559e9ffffd4c /synapse/http
parentFix appservice timestamp massaging (#5233) (diff)
downloadsynapse-2d4853039f37a16cc898c7dba1a4a34f67ca1062.tar.xz
Fix error code for invalid parameter
Signed-off-by: Aaron Raimist <aaron@raim.ist>
Diffstat (limited to 'synapse/http')
-rw-r--r--synapse/http/servlet.py2
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,)