Skip to content
Snippets Groups Projects
Commit d43b6381 authored by pik's avatar pik
Browse files

Fix MockHttpRequest always returning M_UNKNOWN errcode in testing

parent d9350b0d
No related branches found
No related tags found
No related merge requests found
...@@ -188,7 +188,7 @@ class MockHttpResource(HttpServer): ...@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment