From 96e1463b396b5f2c26363a230874b542be8b56e3 Mon Sep 17 00:00:00 2001 From: Zack Fu Zi Xiang Date: Tue, 27 Aug 2024 11:36:51 +0800 Subject: [PATCH] fix: compatibility error --- libs/app-error/src/gotrue.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libs/app-error/src/gotrue.rs b/libs/app-error/src/gotrue.rs index 16099556..3713ce25 100644 --- a/libs/app-error/src/gotrue.rs +++ b/libs/app-error/src/gotrue.rs @@ -85,15 +85,16 @@ impl Display for GoTrueErrorSerde { /// Used to deserialize the response from the gotrue server #[derive(Serialize, Deserialize, Debug, Error)] pub struct GotrueClientError { - pub error: String, + pub error: Option, pub error_description: Option, + pub msg: Option, } impl Display for GotrueClientError { fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { f.write_fmt(format_args!( - "error: {}, description: {:?}", - self.error, self.error_description + "error: {:?}, error_description: {:?}, msg: {:?}", + self.error, self.error_description, self.msg )) } }