From 6ec5d7940dc4c9f6bcbab7b190cac84f1e6af091 Mon Sep 17 00:00:00 2001 From: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com> Date: Tue, 18 Sep 2018 16:21:06 +0800 Subject: [PATCH] Fix ErrBadQuorum description (#1346) --- api/errors.go | 2 +- blockchain/signers/signers.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/errors.go b/api/errors.go index 6e41e14e..9b6bc656 100644 --- a/api/errors.go +++ b/api/errors.go @@ -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"}, diff --git a/blockchain/signers/signers.go b/blockchain/signers/signers.go index c8db6db3..9aa16424 100644 --- a/blockchain/signers/signers.go +++ b/blockchain/signers/signers.go @@ -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. -- 2.11.0