OSDN Git Service

Fix ErrBadQuorum description (#1346)
authorHAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
Tue, 18 Sep 2018 08:21:06 +0000 (16:21 +0800)
committerPaladz <yzhu101@uottawa.ca>
Tue, 18 Sep 2018 08:21:06 +0000 (16:21 +0800)
api/errors.go
blockchain/signers/signers.go

index 6e41e14..9b6bc65 100644 (file)
@@ -45,7 +45,7 @@ var respErrFormatter = map[error]httperror.Info{
        ErrDefault: {500, "BTM000", "Bytom API Error"},
 
        // Signers error namespace (2xx)
-       signers.ErrBadQuorum: {400, "BTM200", "Quorum must be greater than 1 and less than or equal to the length of xpubs"},
+       signers.ErrBadQuorum: {400, "BTM200", "Quorum must be greater than or equal to 1, and must be less than or equal to the length of xpubs"},
        signers.ErrBadXPub:   {400, "BTM201", "Invalid xpub format"},
        signers.ErrNoXPubs:   {400, "BTM202", "At least one xpub is required"},
        signers.ErrDupeXPub:  {400, "BTM203", "Root XPubs cannot contain the same key more than once"},
index c8db6db..9aa1642 100644 (file)
@@ -21,7 +21,7 @@ var (
        // ErrBadQuorum is returned by Create when the quorum
        // provided is less than 1 or greater than the number
        // of xpubs provided.
-       ErrBadQuorum = errors.New("quorum must be greater than 1 and less than or equal to the length of xpubs")
+       ErrBadQuorum = errors.New("quorum must be greater than or equal to 1, and must be less than or equal to the length of xpubs")
 
        // ErrBadXPub is returned by Create when the xpub
        // provided isn't valid.