client-api: Add M_BAD_ALIAS to ErrorKind

This commit is contained in:
gnieto 2022-09-29 14:37:30 +02:00 committed by GitHub
parent 2dbaf19ded
commit a4a14aa9dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -5,6 +5,10 @@ Breaking changes:
* Remove `sync::sync_events::v3::DeviceLists` re-export
* Use `sync::sync_events::DeviceLists` instead
Improvements:
* Add `M_BAD_ALIAS` to `error::ErrorKind`
# 0.15.1
Improvements:

View File

@ -147,6 +147,9 @@ pub enum ErrorKind {
/// M_UNABLE_TO_GRANT_JOIN
UnableToGrantJoin,
/// M_BAD_ALIAS
BadAlias,
/// FI.MAU.MSC2246_NOT_YET_UPLOADED
#[cfg(feature = "unstable-msc2246")]
NotYetUploaded,
@ -201,6 +204,7 @@ impl AsRef<str> for ErrorKind {
Self::WeakPassword => "M_WEAK_PASSWORD",
Self::UnableToAuthorizeJoin => "M_UNABLE_TO_AUTHORISE_JOIN",
Self::UnableToGrantJoin => "M_UNABLE_TO_GRANT_JOIN",
Self::BadAlias => "M_BAD_ALIAS",
#[cfg(feature = "unstable-msc2246")]
Self::NotYetUploaded => "FI.MAU.MSC2246_NOT_YET_UPLOADED",
#[cfg(feature = "unstable-msc2246")]