mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2024-11-21 10:02:00 -08:00
Fix failing test
This commit is contained in:
parent
10219ec1e6
commit
ec95020ac2
4
auth.go
4
auth.go
@ -38,8 +38,8 @@ func authPlain(socket io.ReadWriter, decoder *xml.Decoder, user string, password
|
|||||||
}
|
}
|
||||||
|
|
||||||
switch v := val.(type) {
|
switch v := val.(type) {
|
||||||
case *SASLSuccess:
|
case SASLSuccess:
|
||||||
case *SASLFailure:
|
case SASLFailure:
|
||||||
// v.Any is type of sub-element in failure, which gives a description of what failed.
|
// v.Any is type of sub-element in failure, which gives a description of what failed.
|
||||||
return errors.New("auth failure: " + v.Any.Local)
|
return errors.New("auth failure: " + v.Any.Local)
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user