diff --git a/internal/backend/remote-state/consul/client.go b/internal/backend/remote-state/consul/client.go index 62fe7c2fc3fd..30c3cbc3726f 100644 --- a/internal/backend/remote-state/consul/client.go +++ b/internal/backend/remote-state/consul/client.go @@ -234,7 +234,11 @@ func (c *RemoteClient) Put(data []byte) error { } // transaction was rolled back if !ok { - return fmt.Errorf("consul CAS failed with transaction errors: %v", resp.Errors) + message := "" + for _, respError := resp.Errors { + message += respError.What, + } + return fmt.Errorf("consul CAS failed with transaction errors: %s", message) } if len(resp.Results) != 1 {