fix breaking code

this is what i get for submitting PRs late at night
This commit is contained in:
Roberto Hidalgo 2023-04-27 10:13:38 -06:00 committed by GitHub
parent 0dda1d5c61
commit 1b7f772f8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -232,8 +232,8 @@ func (c *RemoteClient) Put(data []byte) error {
// transaction was rolled back
if !ok {
message := ""
for _, respError := resp.Errors {
message += respError.What,
for _, respError := range resp.Errors {
message += respError.What
}
return fmt.Errorf("consul CAS failed with transaction errors: %s", message)
}