chore: update version4.go (#1754)

Signed-off-by: Ikko Eltociear Ashimine <eltociear@gmail.com>
Signed-off-by: Ikko Ashimine <ashimine_ikko_bp@tenso.com>
This commit is contained in:
Ikko Eltociear Ashimine 2024-07-01 23:04:49 +09:00 committed by GitHub
parent 374c9eedd3
commit fa18e32e12
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -347,7 +347,7 @@ func writeStateV4(file *File, w io.Writer, enc encryption.StateEncryption) tfdia
diags = diags.Append(tfdiags.Sourceless(
tfdiags.Error,
"Failed to serialize output value in state",
fmt.Sprintf("An error occured while serializing output value %q: %s.", name, err),
fmt.Sprintf("An error occurred while serializing output value %q: %s.", name, err),
))
continue
}
@ -357,7 +357,7 @@ func writeStateV4(file *File, w io.Writer, enc encryption.StateEncryption) tfdia
diags = diags.Append(tfdiags.Sourceless(
tfdiags.Error,
"Failed to serialize output value in state",
fmt.Sprintf("An error occured while serializing the type of output value %q: %s.", name, err),
fmt.Sprintf("An error occurred while serializing the type of output value %q: %s.", name, err),
))
continue
}
@ -430,7 +430,7 @@ func writeStateV4(file *File, w io.Writer, enc encryption.StateEncryption) tfdia
diags = diags.Append(tfdiags.Sourceless(
tfdiags.Error,
"Failed to serialize state",
fmt.Sprintf("An error occured while serializing the state to save it. This is a bug in OpenTofu and should be reported: %s.", err),
fmt.Sprintf("An error occurred while serializing the state to save it. This is a bug in OpenTofu and should be reported: %s.", err),
))
return diags
}
@ -444,7 +444,7 @@ func writeStateV4(file *File, w io.Writer, enc encryption.StateEncryption) tfdia
diags = diags.Append(tfdiags.Sourceless(
tfdiags.Error,
"Failed to write state",
fmt.Sprintf("An error occured while writing the serialized state: %s.", err),
fmt.Sprintf("An error occurred while writing the serialized state: %s.", err),
))
return diags
}