Skip to content

Commit

Permalink
Fixed handleBinding wrapping a SessionError in a SessionError
Browse files Browse the repository at this point in the history
  • Loading branch information
ivard committed Oct 23, 2020
1 parent 534ff24 commit 4f0d836
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions irmaclient/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,9 @@ func (session *session) handleBinding(bindingCode string) error {
return &irma.SessionError{ErrorType: irma.ErrorBindingRejected}
}
case err := <-errorchan:
if serr, ok := err.(*irma.SessionError); ok {
return serr
}
return &irma.SessionError{
ErrorType: irma.ErrorServerResponse,
Info: "Binding aborted by server",
Expand Down

0 comments on commit 4f0d836

Please sign in to comment.