Skip to content

Commit 479c9ab

Browse files
authored
add M_UNKNOWN_POS to error constants (#448)
This pull request includes a small change to the `spec/matrixerror.go` file. The change adds a new error code `ErrorUnknownPos` to the `MatrixErrorCode` type. This error is used by the simplified sliding sync * [`spec/matrixerror.go`](diffhunk://#diff-3fd6b2645e9d58a86473fb344ae5b3d849c3085399bf76809aa854e54b6a73f3R26): Added `ErrorUnknownPos` to the `MatrixErrorCode` type. https://github.com/matrix-org/matrix-spec-proposals/blob/erikj/sss/proposals/4186-simplified-sliding-sync.md#connections ### Pull Request Checklist * [x] Pull request includes a [sign off](https://github.com/matrix-org/dendrite/blob/master/docs/CONTRIBUTING.md#sign-off) Signed-off-by: `Roman Isaev <[email protected]>`
1 parent 51ff16e commit 479c9ab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec/matrixerror.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ type MatrixErrorCode string
2323

2424
const (
2525
ErrorUnknown MatrixErrorCode = "M_UNKNOWN"
26+
ErrorUnknownPos MatrixErrorCode = "M_UNKNOWN_POS"
2627
ErrorUnrecognized MatrixErrorCode = "M_UNRECOGNIZED"
2728
ErrorForbidden MatrixErrorCode = "M_FORBIDDEN"
2829
ErrorBadJSON MatrixErrorCode = "M_BAD_JSON"

0 commit comments

Comments
 (0)