Doc errors

This commit is contained in:
Brendan Abolivier 2017-09-07 17:00:04 +01:00
parent ba221c41c5
commit 3a41e21acc
No known key found for this signature in database
GPG key ID: 8EF1500759F70623
2 changed files with 6 additions and 2 deletions

View file

@ -63,8 +63,12 @@ type idServerStoreInviteResponse struct {
} }
var ( var (
// ErrMissingParameter is the error raised if a request for 3PID invite has
// an incomplete body
ErrMissingParameter = errors.New("'address', 'id_server' and 'medium' must all be supplied") ErrMissingParameter = errors.New("'address', 'id_server' and 'medium' must all be supplied")
ErrNotTrusted = errors.New("Untrusted server") // ErrNotTrusted is the error raised if an identity server isn't in the list
// of trusted servers in the configuration file.
ErrNotTrusted = errors.New("untrusted server")
) )
// CheckAndProcessInvite analyses the body of an incoming membership request. // CheckAndProcessInvite analyses the body of an incoming membership request.

View file

@ -33,7 +33,7 @@ import (
"github.com/matrix-org/util" "github.com/matrix-org/util"
) )
var errMissingUserID = errors.New("'user_id' must be supplied.") var errMissingUserID = errors.New("'user_id' must be supplied")
// SendMembership implements PUT /rooms/{roomID}/(join|kick|ban|unban|leave|invite) // SendMembership implements PUT /rooms/{roomID}/(join|kick|ban|unban|leave|invite)
// by building a m.room.member event then sending it to the room server // by building a m.room.member event then sending it to the room server