feat: add SuspendedUser error value on ChorusError

This commit is contained in:
xystrive 2024-07-25 13:16:14 +01:00
parent 530ed90171
commit bf2608fb39
No known key found for this signature in database
GPG Key ID: 5EC5BBA34DEE94B7
1 changed files with 3 additions and 2 deletions

View File

@ -48,7 +48,9 @@ custom_error! {
/// Invalid, insufficient or too many arguments provided. /// Invalid, insufficient or too many arguments provided.
InvalidArguments{error: String} = "Invalid arguments were provided. Error: {error}", InvalidArguments{error: String} = "Invalid arguments were provided. Error: {error}",
/// The request requires MFA verification /// The request requires MFA verification
MfaRequired {error: MfaRequiredSchema} = "Mfa verification is required to perform this action" MfaRequired {error: MfaRequiredSchema} = "Mfa verification is required to perform this action",
/// The user's account is suspended
SuspendUser { token: String } = "Your account has been suspended"
} }
impl From<reqwest::Error> for ChorusError { impl From<reqwest::Error> for ChorusError {
@ -153,4 +155,3 @@ custom_error! {
CannotBind{error: String} = "Cannot bind socket due to a UDP error: {error}", CannotBind{error: String} = "Cannot bind socket due to a UDP error: {error}",
CannotConnect{error: String} = "Cannot connect due to a UDP error: {error}", CannotConnect{error: String} = "Cannot connect due to a UDP error: {error}",
} }