From 5db5a2562f944e0f7b79fe903322cffeafb73710 Mon Sep 17 00:00:00 2001 From: bitfl0wer Date: Sun, 28 May 2023 23:04:02 +0200 Subject: [PATCH] Add InvalidResponseError --- src/errors.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/errors.rs b/src/errors.rs index f76b029..749c8f7 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -23,6 +23,7 @@ custom_error! { 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.", + InvalidResponseError{error: String} = "The response is malformed and cannot be processed. Error: {}", } custom_error! {