From dc30c70c1713fd8c81030824744e2d01af3e186f Mon Sep 17 00:00:00 2001 From: Mickael Remond Date: Mon, 15 Feb 2016 11:04:42 +0100 Subject: [PATCH] Reformat error --- xmpp/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmpp/auth.go b/xmpp/auth.go index 711e077..e8c0e42 100644 --- a/xmpp/auth.go +++ b/xmpp/auth.go @@ -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)