Skip to content

Commit

Permalink
Update connections.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jtcohen6 authored May 11, 2024
1 parent c22e13e commit 382a890
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dbt/adapters/snowflake/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,13 @@ def exception_handler(self, sql):
"Please double check your profile and try again."
).format(msg)
)
elif msg == "access_token":
raise FailedToConnectError(
(
"{}\n\nThis error occurs when authentication has expired. "
"Please reauth with your auth provider."
).format(msg)
)
else:
raise DbtDatabaseError(msg)
except Exception as e:
Expand Down

0 comments on commit 382a890

Please sign in to comment.