~samwhited/xmpp

4b5cf1e25d335897acf5c2bb8a7172535da193df — Sam Whited 8 months ago 57f112f
compress: lowercase error strings

Signed-off-by: Sam Whited <sam@samwhited.com>
1 files changed, 2 insertions(+), 2 deletions(-)

M compress/compression.go
M compress/compression.go => compress/compression.go +2 -2
@@ 29,7 29,7 @@ const (
)

var (
	errNoMethods = errors.New("No supported compression methods were found")
	errNoMethods = errors.New("no supported compression methods were found")
)

// New returns a new xmpp.StreamFeature that can be used to negotiate stream


@@ 140,7 140,7 @@ func New(methods ...Method) xmpp.StreamFeature {
			}

			if selected.Name == "" {
				return mask, nil, errors.New(`No matching compression method found`)
				return mask, nil, errors.New(`no matching compression method found`)
			}

			_, err = fmt.Fprintf(conn, `<compress xmlns='`+NSProtocol+`'><method>%s</method></compress>`, selected.Name)