mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-12-09 21:16:52 -05:00
Improve code sequences with multiple errs
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
parent
12c866bcb9
commit
deea806d9c
9 changed files with 53 additions and 44 deletions
|
|
@ -47,6 +47,10 @@ func (e *ValidationError) LongMessage() string {
|
|||
return msg
|
||||
}
|
||||
|
||||
func (e *ValidationError) messagesCount() int {
|
||||
return len(e.validationErrMsgs)
|
||||
}
|
||||
|
||||
func registerInvalidK8sVersionError(ut ut.Translator) error {
|
||||
return ut.Add("supported_k8s_version", "{0} specifies an unsupported Kubernetes version. {1}", true)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue