diff --git a/x/slashing/errors.go b/x/slashing/errors.go index f61eff17e..8a923f754 100644 --- a/x/slashing/errors.go +++ b/x/slashing/errors.go @@ -17,12 +17,17 @@ const ( CodeValidatorJailed CodeType = 202 ) +//nolint func ErrNoValidatorForAddress(codespace sdk.CodespaceType) sdk.Error { return newError(codespace, CodeInvalidValidator, "That address is not associated with any known validator") } + +//nolint func ErrBadValidatorAddr(codespace sdk.CodespaceType) sdk.Error { return newError(codespace, CodeInvalidValidator, "Validator does not exist for that address") } + +//nolint func ErrValidatorJailed(codespace sdk.CodespaceType) sdk.Error { return newError(codespace, CodeValidatorJailed, "Validator jailed, cannot yet be unrevoked") }