diff --git a/pkg/recipe/sauce.go b/pkg/recipe/sauce.go index ea0fb287..14165ff0 100644 --- a/pkg/recipe/sauce.go +++ b/pkg/recipe/sauce.go @@ -1,6 +1,7 @@ package recipe import ( + "errors" "fmt" "path/filepath" "strings" @@ -169,5 +170,11 @@ func (s *Sauce) RenderInitHelp() (string, error) { return "", fmt.Errorf("failed to render initHelp template: %w", err) } - return buf.String(), nil + output := buf.String() + + if strings.Contains(output, "") { + return "", errors.New("some of the variables used in the initHelp template were undefined") + } + + return output, nil }