From 1b7f772f8b2ca4f0d311081707efed4bcde07db4 Mon Sep 17 00:00:00 2001 From: Roberto Hidalgo Date: Thu, 27 Apr 2023 10:13:38 -0600 Subject: [PATCH] fix breaking code this is what i get for submitting PRs late at night --- internal/backend/remote-state/consul/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/backend/remote-state/consul/client.go b/internal/backend/remote-state/consul/client.go index 0d72ccd618..a5fcddf834 100644 --- a/internal/backend/remote-state/consul/client.go +++ b/internal/backend/remote-state/consul/client.go @@ -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) }