INNER CODE UNIT · Go
HashGenerationError
hashicorp/terraform-provider-random · internal/diagnostics/diagnostics.go:27
func HashGenerationError(errMsg string) diag.Diagnostics {
var diags diag.Diagnostics
diags.AddError(
"Hash Generation Error",
"While attempting to generate a hash from the password an error occurred.\n\n"+
"Verify that the state contains a populated 'result' field, using 'terraform state show', and retry the operation\n\n"+
fmt.Sprintf("Original Error: %s", errMsg),
)
return diags
}
func RandomnessGenerationError(errMsg string) diag.Diagnostics {
var diags diag.Diagnostics
diags.AddError(
"Randomness Generation Error",