Improved error messages for Twitter trust bonus verification
- Dominant language
- JavaScript
- Stars
- 1.8k
- Forks
- 776
- PR merge metrics
- No merged PRs in 30d
Description
### User Story
As a Funder, I want a better error message when Twitter trust bonus verification fails so I can troubleshoot the issue without contacting Gitcoin support.
### Why Is this Needed
When Twitter verification fails there is no instruction on how to fix the issue, so if users encounter an error, they are stuck and must contact Gitcoin support (or give up).
### Description
*Type*: Feature
Provide a more detailed error message along with instructions to fix the issue. The current error message is not descriptive enough.
### Current Behavior
I attempted to increase my Trust Bonus using Twitter. I sent the tweet that was generated by Gitcoin. I clicked Verify, and received the error message:
>Sorry, we couldn't get the last tweet from X.
where X is the Twitter handle.
It took me a few days to figure out that it failed because my tweets were protected. Once I unprotected my tweets, verification worked.
### Expected Behavior
If the Twitter API will tell you whether an account's tweets are protected, it would be good to have a more descriptive error message:
>Sorry, we couldn't get the last tweet from X because its tweets are protected.
If the Twitter API does not allow the above, then perhaps an error message like this would suffice:
>Sorry, we couldn't get the last tweet from X. Possible reasons include:
> * Account's tweets are protected
> * Other reasons...
### Definition of Done
When Twitter verification fails, the user knows what to do next to troubleshoot the issue.
### Data Requirements
Decreased number of funders reporting errors with the Twitter Trust Bonus verification.
### Additional Information
None.
Contributor guide
Assessment
This issue has not been assessed yet.