diff options
author | Erik Johnston <erikj@jki.re> | 2016-10-19 14:26:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-19 14:26:17 +0100 |
commit | 78c083f1591a51a3e0bbcfe3a83053e6e967b594 (patch) | |
tree | e01c9c7a720eb5105ce768d31d604d18adfda203 /tests/utils.py | |
parent | Merge pull request #1176 from matrix-org/erikj/eager_ratelimit_check (diff) | |
parent | Refactor test_filter to use real DataStore (diff) | |
download | synapse-78c083f1591a51a3e0bbcfe3a83053e6e967b594.tar.xz |
Merge pull request #1164 from pik/error-codes
Clarify Error codes for GET /filter/
Diffstat (limited to 'tests/utils.py')
-rw-r--r-- | tests/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/utils.py b/tests/utils.py index f74526b6a7..a91d167f90 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -189,7 +189,7 @@ class MockHttpResource(HttpServer): ) defer.returnValue((code, response)) except CodeMessageException as e: - defer.returnValue((e.code, cs_error(e.msg))) + defer.returnValue((e.code, cs_error(e.msg, code=e.errcode))) raise KeyError("No event can handle %s" % path) |