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

Commit d1a66cb

Browse files
committed
Use msc namespace
1 parent 411ac08 commit d1a66cb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

synapse/api/errors.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,9 @@ def __init__(
316316
class UnstableSpecAuthError(AuthError):
317317
"""An error raised when a new error code is being proposed to replace a previous one.
318318
This error will return a "org.matrix.unstable.errcode" property with the new error code,
319-
with the previous error code still being defined in the "errcode" property
319+
with the previous error code still being defined in the "errcode" property.
320+
321+
This error will include `org.matrix.MSC3848.unstable.errcode` in the C-S error body.
320322
"""
321323

322324
def __init__(
@@ -334,7 +336,7 @@ def error_dict(self) -> "JsonDict":
334336
return cs_error(
335337
self.msg,
336338
self.previous_errcode,
337-
**{"org.matrix.unstable.errcode": self.errcode},
339+
**{"org.matrix.MSC3848.unstable.errcode": self.errcode},
338340
**self._additional_fields,
339341
)
340342

0 commit comments

Comments
 (0)