Skip to content

Commit

Permalink
Update error message for misconfigured network rules
Browse files Browse the repository at this point in the history
  • Loading branch information
benjben committed Feb 19, 2025
1 parent 7da7dfc commit f40b4b7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ object SnowflakeRetrying {
// Snowflake returns a 513 HTTP status code if you try to connect to a host that does not exist
"Unrecognized Snowflake account name or host name"
case _: SecurityException =>
"Unauthorized: Invalid user name or public/private key pair"
"Unauthorized: Invalid user name or invalid public/private key pair or mis-configured network policies"
case sql: java.sql.SQLException if Set(2003, 2043).contains(sql.getErrorCode) =>
// Various known error codes for object does not exist or not authorized to view it
sql.show
Expand Down

0 comments on commit f40b4b7

Please sign in to comment.