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

fix: Consistent error message for invalid identity #2558

Merged
merged 1 commit into from
Sep 1, 2021

Conversation

thi4go
Copy link
Member

@thi4go thi4go commented Aug 31, 2021

closes #2516

I decided to keep this simple and just match the error message for errors thrown in the lib/pki and for errors rendered with components/IdentityErrorIndicator components.

  • lib/pki throws the identity error caused on runtime by methods that call the lib's functions.
  • components/IdentityErrorIndicator is rendered when the components check beforehand if the identity is valid or not.

Copy link
Member

@tiagoalvesdulce tiagoalvesdulce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tiagoalvesdulce tiagoalvesdulce merged commit b4316d6 into decred:master Sep 1, 2021
@thi4go thi4go mentioned this pull request Sep 23, 2021
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.

Improve identity error message.
2 participants