mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-02 14:26:23 -04:00
deps: replace multierr with native errors.Join
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
parent
955316c661
commit
12c866bcb9
32 changed files with 173 additions and 159 deletions
|
@ -36,7 +36,6 @@ import (
|
|||
ut "github.com/go-playground/universal-translator"
|
||||
"github.com/go-playground/validator/v10"
|
||||
en_translations "github.com/go-playground/validator/v10/translations/en"
|
||||
"go.uber.org/multierr"
|
||||
)
|
||||
|
||||
// Measurements is a required alias since docgen is not able to work with
|
||||
|
@ -586,12 +585,10 @@ func (c *Config) Validate(force bool) error {
|
|||
return err
|
||||
}
|
||||
|
||||
var validationErrors error
|
||||
var validationErrMsgs []string
|
||||
for _, e := range errs {
|
||||
validationErrors = multierr.Append(
|
||||
validationErrors,
|
||||
errors.New(e.Translate(trans)),
|
||||
)
|
||||
validationErrMsgs = append(validationErrMsgs, e.Translate(trans))
|
||||
}
|
||||
return validationErrors
|
||||
|
||||
return &ValidationError{validationErrMsgs: validationErrMsgs}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue