diff --git a/internal/command/init_test.go b/internal/command/init_test.go index 5b877a53a46e..5b9b6d50ab06 100644 --- a/internal/command/init_test.go +++ b/internal/command/init_test.go @@ -2726,7 +2726,7 @@ func TestInit_invalidSyntaxNoBackend(t *testing.T) { } errStr := testOutput.Stderr() - if subStr := "Terraform encountered problems during initialisation, including problems\nwith the configuration, described below."; !strings.Contains(errStr, subStr) { + if subStr := "Terraform encountered problems during initialization, including problems\nwith the configuration, described below."; !strings.Contains(errStr, subStr) { t.Errorf("Error output should include preamble\nwant substr: %s\ngot:\n%s", subStr, errStr) } if subStr := "Error: Unsupported block type"; !strings.Contains(errStr, subStr) { @@ -2757,7 +2757,7 @@ func TestInit_invalidSyntaxWithBackend(t *testing.T) { } errStr := testOutput.Stderr() - if subStr := "Terraform encountered problems during initialisation, including problems\nwith the configuration, described below."; !strings.Contains(errStr, subStr) { + if subStr := "Terraform encountered problems during initialization, including problems\nwith the configuration, described below."; !strings.Contains(errStr, subStr) { t.Errorf("Error output should include preamble\nwant substr: %s\ngot:\n%s", subStr, errStr) } if subStr := "Error: Unsupported block type"; !strings.Contains(errStr, subStr) { @@ -2788,7 +2788,7 @@ func TestInit_invalidSyntaxInvalidBackend(t *testing.T) { } errStr := testOutput.Stderr() - if subStr := "Terraform encountered problems during initialisation, including problems\nwith the configuration, described below."; !strings.Contains(errStr, subStr) { + if subStr := "Terraform encountered problems during initialization, including problems\nwith the configuration, described below."; !strings.Contains(errStr, subStr) { t.Errorf("Error output should include preamble\nwant substr: %s\ngot:\n%s", subStr, errStr) } if subStr := "Error: Unsupported block type"; !strings.Contains(errStr, subStr) { @@ -2822,7 +2822,7 @@ func TestInit_invalidSyntaxBackendAttribute(t *testing.T) { } errStr := testOutput.All() - if subStr := "Terraform encountered problems during initialisation, including problems\nwith the configuration, described below."; !strings.Contains(errStr, subStr) { + if subStr := "Terraform encountered problems during initialization, including problems\nwith the configuration, described below."; !strings.Contains(errStr, subStr) { t.Errorf("Error output should include preamble\nwant substr: %s\ngot:\n%s", subStr, errStr) } if subStr := "Error: Invalid character"; !strings.Contains(errStr, subStr) { diff --git a/internal/command/views/init.go b/internal/command/views/init.go index 92868d11615f..d78b53759a42 100644 --- a/internal/command/views/init.go +++ b/internal/command/views/init.go @@ -362,7 +362,7 @@ const partnerAndCommunityProvidersInfo = "\nPartner and community providers are "https://www.terraform.io/docs/cli/plugins/signing.html" const errInitConfigError = ` -[reset]Terraform encountered problems during initialisation, including problems +[reset]Terraform encountered problems during initialization, including problems with the configuration, described below. The Terraform configuration must be valid before initialization so that @@ -370,7 +370,7 @@ Terraform can determine which modules and providers need to be installed. ` const errInitConfigErrorJSON = ` -Terraform encountered problems during initialisation, including problems +Terraform encountered problems during initialization, including problems with the configuration, described below. The Terraform configuration must be valid before initialization so that