Skip to content
Snippets Groups Projects
Commit ad3714b7 authored by Benjamin Wenger's avatar Benjamin Wenger
Browse files

fixed bug in handling resending requests after request sending error

parent d56fde18
No related branches found
No related tags found
No related merge requests found
......@@ -57,10 +57,13 @@ func RequestAuth(partner, me contact.Contact, message string, rng io.Reader,
if err == nil {
if rqType == auth.Receive {
return 0, errors.WithMessage(err,
"Cannot send a request after receiving a request")
return 0, errors.Errorf("Cannot send a request after " +
"receiving a request")
} else if rqType == auth.Sent {
resend = true
}else{
return 0, errors.Errorf("Cannot send a request after " +
" a stored request with unknown rqType: %d", rqType)
}
}else if !strings.Contains(err.Error(), auth.NoRequest){
return 0, errors.WithMessage(err,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment