mirror of
https://github.com/SagerNet/sing.git
synced 2025-04-02 03:17:37 +03:00
Fix multi error
This commit is contained in:
parent
f8874e3e1c
commit
f494f694c7
1 changed files with 1 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue