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

Handle keyring.ErrNotFound error instead of panicing. #104

Merged
merged 1 commit into from
Aug 21, 2017

Conversation

wrouesnel
Copy link
Contributor

github.com/tmc/keyring returns keyring.ErrNotFound instead of a blank password in newer libraries. Handle this case properly by nulling the error, to give the user a chance to set a new password.

This makes go-jira compatible with the newer versions which now incorporate a fix for working out-of-the-box on Linux.

github.com/tmc/keyring returns keyring.ErrNotFound instead of a blank password
in newer libraries. Handle this case properly by nulling the error, to give the
user a chance to set a new password.
@coryb
Copy link
Contributor

coryb commented Aug 21, 2017

Nice, thanks!

@coryb coryb merged commit 8d8167b into go-jira:master Aug 21, 2017
coryb added a commit that referenced this pull request Aug 21, 2017
@coryb
Copy link
Contributor

coryb commented Aug 26, 2017

coryb added a commit that referenced this pull request Aug 31, 2017
Handle keyring.ErrNotFound error instead of panicing.
coryb added a commit that referenced this pull request Aug 31, 2017
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.

2 participants