Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide helpful error if type assertion fails #5

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

schustafa
Copy link
Owner

It's entirely possible that type assertion could fail for other reasons, but the only one we've seen so far is that a user's token doesn't have the right scopes.

This adds a troubleshooting step in the event of such a failure that previously only lived in the readme.

Fix #4.

Fix #4.

Co-authored-by: Abigail Chen <6415144+abigailychen@users.noreply.github.com>
@schustafa schustafa merged commit 390caac into main Jun 20, 2024
2 checks passed
@schustafa schustafa deleted the issue-4/careful-type-assertion branch June 20, 2024 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

panic: interface conversion: interface {} is nil, not map[string]interface {}
1 participant