Skip to content

Commit d482d0e

Browse files
committed
Fix diagnostic using an error unnecessarily
1 parent 3d346e3 commit d482d0e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

internal/command/meta_backend.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1615,11 +1615,10 @@ func (m *Meta) stateStore_C_s(c *configs.StateStore, stateStoreHash int, provide
16151615
} else {
16161616
pLock := opts.Locks.Provider(c.ProviderAddr)
16171617
if pLock == nil {
1618-
diags = diags.Append(fmt.Errorf("The provider %s (%q) is not present in the lockfile, despite being used for state store %q. This is a bug in Terraform and should be reported",
1618+
diags = diags.Append(fmt.Errorf("The provider %s (%q) is not present in the lockfile, despite being used for state store %q. This is a bug in Terraform and should be reported.",
16191619
c.Provider.Name,
16201620
c.ProviderAddr,
1621-
c.Type,
1622-
))
1621+
c.Type))
16231622
return nil, diags
16241623
}
16251624
var err error

0 commit comments

Comments
 (0)