Commit b911a847 authored by Tomas's avatar Tomas
Browse files

EnrollmentError -> EnrollmentFailure

parent cd6a1f63
......@@ -76,7 +76,7 @@ var defaultPreferences = Preferences{
// KeyshareHandler is used for asking the user for his email address and PIN,
// for enrolling at a keyshare server.
type KeyshareHandler interface {
EnrollmentError(manager irma.SchemeManagerIdentifier, err error)
EnrollmentFailure(manager irma.SchemeManagerIdentifier, err error)
EnrollmentSuccess(manager irma.SchemeManagerIdentifier)
}
......@@ -669,7 +669,7 @@ func (client *Client) KeyshareEnroll(manager irma.SchemeManagerIdentifier, email
go func() {
err := client.keyshareEnrollWorker(manager, email, pin)
if err != nil {
client.handler.EnrollmentError(manager, err)
client.handler.EnrollmentFailure(manager, err)
}
}()
}
......
......@@ -49,7 +49,7 @@ func (h *keyshareEnrollmentHandler) Failure(action irma.Action, err *irma.Sessio
// fail is a helper to ensure the kss is removed from the client in case of any problem
func (h *keyshareEnrollmentHandler) fail(err error) {
delete(h.client.keyshareServers, h.kss.SchemeManagerIdentifier)
h.client.handler.EnrollmentError(h.kss.SchemeManagerIdentifier, err)
h.client.handler.EnrollmentFailure(h.kss.SchemeManagerIdentifier, err)
}
// Not interested, ingore
......
......@@ -34,7 +34,7 @@ func (i *TestClientHandler) EnrollmentSuccess(manager irma.SchemeManagerIdentifi
default: // nop
}
}
func (i *TestClientHandler) EnrollmentError(manager irma.SchemeManagerIdentifier, err error) {
func (i *TestClientHandler) EnrollmentFailure(manager irma.SchemeManagerIdentifier, err error) {
select {
case i.c <- err: // nop
default:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment