Skip to content

Commit

Permalink
Handle invalid warehouse/account errors correctly (#43)
Browse files Browse the repository at this point in the history
* Handle invalid warehouse/account errors correctly

* Remove extra newline in responses.rs

---------

Co-authored-by: andrusha <[email protected]>
  • Loading branch information
sgrebnov and andrusha authored May 8, 2024
1 parent 38dcb9e commit cc165e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion snowflake-api/src/responses.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ pub struct ExecErrorResponseData {
#[derive(Deserialize, Debug)]
#[serde(rename_all = "camelCase")]
pub struct AuthErrorResponseData {
pub authn_method: String,
pub authn_method: Option<String>,
pub error_code: Option<String>,
}

#[derive(Deserialize, Debug)]
Expand Down

0 comments on commit cc165e9

Please sign in to comment.