File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -950,7 +950,7 @@ func (m *Migrate) unlock() error {
950
950
// if a prevErr is not nil.
951
951
func (m * Migrate ) unlockErr (prevErr error ) error {
952
952
if err := m .unlock (); err != nil {
953
- return NewMultiError (prevErr , err )
953
+ return multierror . Append (prevErr , err )
954
954
}
955
955
return prevErr
956
956
}
Original file line number Diff line number Diff line change @@ -8,11 +8,16 @@ import (
8
8
)
9
9
10
10
// MultiError holds multiple errors.
11
+ //
12
+ // Deprecated: Use github.com/hashicorp/go-multierror instead
11
13
type MultiError struct {
12
14
Errs []error
13
15
}
14
16
15
17
// NewMultiError returns an error type holding multiple errors.
18
+ //
19
+ // Deprecated: Use github.com/hashicorp/go-multierror instead
20
+ //
16
21
func NewMultiError (errs ... error ) MultiError {
17
22
compactErrs := make ([]error , 0 )
18
23
for _ , e := range errs {
You can’t perform that action at this time.
0 commit comments