This commit is contained in:
Elbaz 2023-08-22 19:02:07 +03:00
parent b0fafbe134
commit 783b0fc5b8
2 changed files with 3 additions and 3 deletions

View File

@ -30,9 +30,9 @@ type ErrHostNoProviders struct {
func (err ErrHostNoProviders) Error() string {
switch {
case err.HasOtherVersion:
return fmt.Sprintf("host %s does not support the provider registry protocol required by this Terraform version, but may be compatible with a different Terraform version", err.Hostname.ForDisplay())
return fmt.Sprintf("host %s does not support the provider registry protocol required by this OpenTF version, but may be compatible with a different OpenTF version", err.Hostname.ForDisplay())
default:
return fmt.Sprintf("host %s does not offer a Terraform provider registry", err.Hostname.ForDisplay())
return fmt.Sprintf("host %s does not offer a OpenTF provider registry", err.Hostname.ForDisplay())
}
}

View File

@ -200,7 +200,7 @@ func PackageMatchesHash(loc PackageLocation, want Hash) (bool, error) {
}
return got == want, nil
default:
return false, fmt.Errorf("unsupported hash format (this may require a newer version of Terraform)")
return false, fmt.Errorf("unsupported hash format (this may require a newer version of OpenTF)")
}
}