Merge pull request #1098 from ethan-daocloud/patch-1

cleanup: fix word errors in errors.go
This commit is contained in:
Derek Collison
2019-08-15 07:36:26 -07:00
committed by GitHub

View File

@@ -40,14 +40,14 @@ var (
// ErrReservedPublishSubject represents an error condition when sending to a reserved subject, e.g. _SYS.>
ErrReservedPublishSubject = errors.New("reserved internal subject")
// ErrBadClientProtocol signals a client requested an invalud client protocol.
// ErrBadClientProtocol signals a client requested an invalid client protocol.
ErrBadClientProtocol = errors.New("invalid client protocol")
// ErrTooManyConnections signals a client that the maximum number of connections supported by the
// server has been reached.
ErrTooManyConnections = errors.New("maximum connections exceeded")
// ErrTooManyAccountConnections signals that an acount has reached its maximum number of active
// ErrTooManyAccountConnections signals that an account has reached its maximum number of active
// connections.
ErrTooManyAccountConnections = errors.New("maximum account active connections exceeded")