From 9a96c3f930778d03a294d2c16fc2ab91c1634864 Mon Sep 17 00:00:00 2001 From: "John C. Bland II" Date: Mon, 15 Nov 2021 10:54:48 -0600 Subject: [PATCH] fix: change misspelled error messages (#78) --- internal/exec/helmfile.go | 2 +- internal/exec/terraform.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/exec/helmfile.go b/internal/exec/helmfile.go index c6eddb9c2..0d313e4d9 100644 --- a/internal/exec/helmfile.go +++ b/internal/exec/helmfile.go @@ -32,7 +32,7 @@ func ExecuteHelmfile(cmd *cobra.Command, args []string) error { componentPath := path.Join(c.ProcessedConfig.HelmfileDirAbsolutePath, info.ComponentFolderPrefix, info.Component) componentPathExists, err := utils.IsDirectory(componentPath) if err != nil || !componentPathExists { - return errors.New(fmt.Sprintf("Component '%s' does not exixt in %s", + return errors.New(fmt.Sprintf("Component '%s' does not exist in %s", info.Component, path.Join(c.ProcessedConfig.HelmfileDirAbsolutePath, info.ComponentFolderPrefix), )) diff --git a/internal/exec/terraform.go b/internal/exec/terraform.go index be2746336..02a524bdf 100644 --- a/internal/exec/terraform.go +++ b/internal/exec/terraform.go @@ -43,7 +43,7 @@ func ExecuteTerraform(cmd *cobra.Command, args []string) error { componentPath := path.Join(c.ProcessedConfig.TerraformDirAbsolutePath, info.ComponentFolderPrefix, finalComponent) componentPathExists, err := utils.IsDirectory(componentPath) if err != nil || !componentPathExists { - return errors.New(fmt.Sprintf("Component '%s' does not exixt in %s", + return errors.New(fmt.Sprintf("Component '%s' does not exist in %s", finalComponent, path.Join(c.ProcessedConfig.TerraformDirAbsolutePath, info.ComponentFolderPrefix), ))