Feature: Add message to OAuthRefreshException#106
Conversation
Walkthrough
OAuth Error Messages
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning Review ran into problems🔥 ProblemsStopped waiting for pipeline failures after 30000ms. One of your pipelines takes longer than our 30000ms fetch window to run, so review may not consider pipeline-failure results for inline comments if any failures occurred after the fetch window. Increase the timeout if you want to wait longer or run a Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
This PR updates OAuthRefreshException to provide a more specific human-readable message when OAuth token refresh fails.
Changes:
- Add a dedicated
messagestring toOAuthRefreshExceptionfor clearer error reporting.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| message = 'Unauthorized - OAuth token refresh failed' | ||
|
|
||
| def __init__(self, response=None): | ||
| super().__init__(response) | ||
| self.data = self.response.json() |
| message = 'Unauthorized - OAuth token refresh failed' | ||
|
|
||
| def __init__(self, response=None): | ||
| super().__init__(response) |
| message = 'Unauthorized - OAuth token refresh failed' | ||
|
|
|
Actionable comments posted: 0 |
This sets own message rather inheriting from
OAuthExceptionExtracted from #104