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

politeiavoter: Improve summary printing. #1594

Merged
merged 1 commit into from Dec 2, 2021

Conversation

lukebp
Copy link
Member

@lukebp lukebp commented Dec 1, 2021

This commit updates the summary printing to consider already voted
errors as being successfully cast votes.

Already voted errors are not considered to be failures because they
occur when a network error or dropped client connection causes
politeiavoter to incorrectly think that the first attempt to cast the
vote failed. politeiavoter will attempt to retry the vote that it has
already successfully cast, resulting in the already voted error.

Printing these errors as failures is misleading to the user, who will
likely consider a failure as meaning the vote was not successfully cast,
which is incorrect in this case.

This commit updates the summary printing to consider already voted
errors as being successfully cast votes.

Already voted errors are not considered to be failures because they
occur when a network error or dropped client connection causes
politeiavoter to incorrectly think that the first attempt to cast the
vote failed. politeiavoter will attempt to retry the vote that it has
already successfully cast, resulting in the already voted error.

Printing these errors as failures is misleading to the user, who will
likely consider a failure as meaning the vote was not successfully cast,
which is incorrect in this case.
@lukebp lukebp added enhancement The issue enhances an existing feature. 91cfcc8 labels Dec 1, 2021
@lukebp lukebp merged commit 43fe7b3 into decred:master Dec 2, 2021
@lukebp lukebp deleted the pivoter-summary branch February 6, 2022 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement The issue enhances an existing feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants