From e794efc31e732ce8aff5a5aa524dda55602eb97f Mon Sep 17 00:00:00 2001 From: Brandon Croft Date: Mon, 4 Apr 2022 13:39:27 -0600 Subject: [PATCH] better errors from terraform output when cloud is configured --- internal/cloud/state.go | 2 +- internal/states/state.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/cloud/state.go b/internal/cloud/state.go index 739d422c59..14e381256e 100644 --- a/internal/cloud/state.go +++ b/internal/cloud/state.go @@ -68,7 +68,7 @@ func (s *State) GetRootOutputValues() (map[string]*states.OutputValue, error) { so, err := s.Client.client.StateVersionOutputs.ReadCurrent(ctx, s.Client.workspace.ID) if err != nil { - return nil, fmt.Errorf("Could not read state version outputs: %w", err) + return nil, fmt.Errorf("could not read state version outputs: %w", err) } result := make(map[string]*states.OutputValue) diff --git a/internal/states/state.go b/internal/states/state.go index 28d962786d..90c73c1158 100644 --- a/internal/states/state.go +++ b/internal/states/state.go @@ -19,7 +19,7 @@ import ( // so when accessing a State object concurrently it is the caller's // responsibility to ensure that only one write is in progress at a time // and that reads only occur when no write is in progress. The most common -// way to acheive this is to wrap the State in a SyncState and use the +// way to achieve this is to wrap the State in a SyncState and use the // higher-level atomic operations supported by that type. type State struct { // Modules contains the state for each module. The keys in this map are @@ -412,7 +412,7 @@ func (s *State) MoveAbsResource(src, dst addrs.AbsResource) { // MaybeMoveAbsResource moves the given src AbsResource's current state to the // new dst address. This function will succeed if both the src address does not // exist in state and the dst address does; the return value indicates whether -// or not the move occured. This function will panic if either the src does not +// or not the move occurred. This function will panic if either the src does not // exist or the dst does exist (but not both). func (s *State) MaybeMoveAbsResource(src, dst addrs.AbsResource) bool { // Get the source and destinatation addresses from state.