Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Use msc namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Half-Shot committed Jul 25, 2022
1 parent 411ac08 commit d1a66cb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions synapse/api/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,9 @@ def __init__(
class UnstableSpecAuthError(AuthError):
"""An error raised when a new error code is being proposed to replace a previous one.
This error will return a "org.matrix.unstable.errcode" property with the new error code,
with the previous error code still being defined in the "errcode" property
with the previous error code still being defined in the "errcode" property.
This error will include `org.matrix.MSC3848.unstable.errcode` in the C-S error body.
"""

def __init__(
Expand All @@ -334,7 +336,7 @@ def error_dict(self) -> "JsonDict":
return cs_error(
self.msg,
self.previous_errcode,
**{"org.matrix.unstable.errcode": self.errcode},
**{"org.matrix.MSC3848.unstable.errcode": self.errcode},
**self._additional_fields,
)

Expand Down

0 comments on commit d1a66cb

Please sign in to comment.