mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2024-11-22 18:42:02 -08:00
Reformat error
This commit is contained in:
parent
4d3463458e
commit
dc30c70c17
@ -18,7 +18,7 @@ func authSASL(socket io.ReadWriter, decoder *xml.Decoder, f streamFeatures, user
|
||||
}
|
||||
}
|
||||
if !havePlain {
|
||||
return errors.New(fmt.Sprintf("PLAIN authentication is not supported by server: %v", f.Mechanisms.Mechanism))
|
||||
return fmt.Errorf("PLAIN authentication is not supported by server: %v", f.Mechanisms.Mechanism)
|
||||
}
|
||||
|
||||
return authPlain(socket, decoder, user, password)
|
||||
|
Loading…
Reference in New Issue
Block a user