Skip to content

Commit

Permalink
Update keychain.go
Browse files Browse the repository at this point in the history
  • Loading branch information
georgijd-form3 committed Jun 27, 2022
1 parent 81fed19 commit f78ca73
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion keychain.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,13 @@ func (k *keychain) Remove(key string) error {
}

debugf("Removing keychain item service=%q, account=%q, keychain %q", k.service, key, k.path)
return gokeychain.DeleteItem(item)
err := gokeychain.DeleteItem(item)
if err == gokeychain.ErrorItemNotFound {
return ErrKeyNotFound
}

return err

}

func (k *keychain) Keys() ([]string, error) {
Expand Down

0 comments on commit f78ca73

Please sign in to comment.