mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-25 08:21:07 -06:00
use multierror.Append instead of append
Co-authored-by: Chris Thain <32781396+cthain@users.noreply.github.com>
This commit is contained in:
parent
787cc693cd
commit
8e5a66b2f5
@ -233,7 +233,7 @@ func (c *RemoteClient) Put(data []byte) error {
|
|||||||
if !ok {
|
if !ok {
|
||||||
var resultErr error
|
var resultErr error
|
||||||
for _, respError := range resp.Errors {
|
for _, respError := range resp.Errors {
|
||||||
resultErr = append(resultErr, errors.New(respError.What))
|
resultErr = multierror.Append(resultErr, errors.New(respError.What))
|
||||||
}
|
}
|
||||||
return fmt.Errorf("consul CAS failed with transaction errors: %w", resultErr)
|
return fmt.Errorf("consul CAS failed with transaction errors: %w", resultErr)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user