From 8531e2e36ab116d0944ee2c6df37594c34a0e6d4 Mon Sep 17 00:00:00 2001 From: Martin Date: Wed, 10 Jan 2024 16:17:02 +0100 Subject: [PATCH] improve no more auth err msg (#176) Improve error message when no viable authentication method is available --- xmpp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)