From d17c0464806ee4f1bdb960bca4e93109cdcc77cf Mon Sep 17 00:00:00 2001 From: bitfl0wer Date: Tue, 16 May 2023 15:58:51 +0200 Subject: [PATCH] Add PasswordRequiredError --- src/errors.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/errors.rs b/src/errors.rs index d449559..f76b029 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -22,6 +22,7 @@ custom_error! { TokenExpired = "Token expired, invalid or not found.", NoPermission = "You do not have the permissions needed to perform this action.", NotFound{error: String} = "The provided resource hasn't been found: {}", + PasswordRequiredError = "You need to provide your current password to authenticate for this action.", } custom_error! {