From bf2608fb3955a7841621d52a8b5453e5c0910774 Mon Sep 17 00:00:00 2001 From: xystrive Date: Thu, 25 Jul 2024 13:16:14 +0100 Subject: [PATCH] feat: add SuspendedUser error value on ChorusError --- src/errors.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/errors.rs b/src/errors.rs index 23df755..09bf7a1 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -48,7 +48,9 @@ custom_error! { /// Invalid, insufficient or too many arguments provided. InvalidArguments{error: String} = "Invalid arguments were provided. Error: {error}", /// 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 for ChorusError { @@ -153,4 +155,3 @@ custom_error! { CannotBind{error: String} = "Cannot bind socket due to a UDP error: {error}", CannotConnect{error: String} = "Cannot connect due to a UDP error: {error}", } -