Skip to content

Commit

Permalink
Added response details in case of oauth error.
Browse files Browse the repository at this point in the history
  • Loading branch information
reformy committed Feb 12, 2024
1 parent dc6f59a commit 0056afd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyzoom/oauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def _oauth_request(headers, data):

if response.status_code == 200:
return response.json()
raise err.APIError("Failed to refresh tokens")
raise err.APIError(f"Failed to refresh tokens: {response.status_code} {response.text}")


def refresh_tokens(client_id: str, client_secret: str, refresh_token: str):
Expand Down

0 comments on commit 0056afd

Please sign in to comment.