Fix multi error

This commit is contained in:
世界 2023-07-07 13:56:57 +08:00
parent f8874e3e1c
commit f494f694c7
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

View file

@ -23,6 +23,7 @@ func (e *multiError) Unwrap() []error {
func Errors(errors ...error) error {
errors = common.FilterNotNil(errors)
errors = ExpandAll(errors)
errors = common.FilterNotNil(errors)
errors = common.UniqBy(errors, error.Error)
switch len(errors) {
case 0: