mirror of
https://github.com/matrix-org/synapse.git
synced 2025-09-29 01:21:05 +02:00
Fix MockHttpRequest always returning M_UNKNOWN errcode in testing
This commit is contained in:
parent
d9350b0db8
commit
d43b63818c
@ -188,7 +188,7 @@ class MockHttpResource(HttpServer):
|
|||||||
)
|
)
|
||||||
defer.returnValue((code, response))
|
defer.returnValue((code, response))
|
||||||
except CodeMessageException as e:
|
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)
|
raise KeyError("No event can handle %s" % path)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user