diff --git a/xmpp.go b/xmpp.go index 8cc3a88..c8cc9dd 100644 --- a/xmpp.go +++ b/xmpp.go @@ -681,7 +681,7 @@ func (c *Client) init(o *Options) error { } } if mechanism == "" { - return fmt.Errorf("PLAIN authentication is not an option: %v", f.Mechanisms.Mechanism) + return fmt.Errorf("no viable authentication method available: %v", f.Mechanisms.Mechanism) } // Next message should be either success or failure. name, val, err := next(c.p)