From 511125508483bb80ab59e1c246990ef80a78d53b Mon Sep 17 00:00:00 2001 From: sgrebnov Date: Sun, 5 May 2024 16:13:05 -0700 Subject: [PATCH 1/2] Handle invalid warehouse/account errors correctly --- snowflake-api/src/responses.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/snowflake-api/src/responses.rs b/snowflake-api/src/responses.rs index b8a3e68..5a2de65 100644 --- a/snowflake-api/src/responses.rs +++ b/snowflake-api/src/responses.rs @@ -61,7 +61,9 @@ pub struct ExecErrorResponseData { #[derive(Deserialize, Debug)] #[serde(rename_all = "camelCase")] pub struct AuthErrorResponseData { - pub authn_method: String, + pub authn_method: Option, + pub error_code: Option, + } #[derive(Deserialize, Debug)] From 984940e2813f84f8066eab306320eb4420824c5a Mon Sep 17 00:00:00 2001 From: andrusha Date: Wed, 8 May 2024 23:19:16 +0200 Subject: [PATCH 2/2] Remove extra newline in responses.rs --- snowflake-api/src/responses.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/snowflake-api/src/responses.rs b/snowflake-api/src/responses.rs index 5a2de65..9a687fa 100644 --- a/snowflake-api/src/responses.rs +++ b/snowflake-api/src/responses.rs @@ -63,7 +63,6 @@ pub struct ExecErrorResponseData { pub struct AuthErrorResponseData { pub authn_method: Option, pub error_code: Option, - } #[derive(Deserialize, Debug)]