From 508a7491b30c8d3d0d06d12429e7cbcbe353245e Mon Sep 17 00:00:00 2001 From: p4u1 Date: Fri, 25 Apr 2025 10:10:26 +0200 Subject: [PATCH] fix: Does not error when recipes folder does not exist in app new --- cli/internal/validate.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cli/internal/validate.go b/cli/internal/validate.go index 32c818d5..47c36981 100644 --- a/cli/internal/validate.go +++ b/cli/internal/validate.go @@ -32,12 +32,12 @@ func ValidateRecipe(args []string, cmdName string) recipe.Recipe { localRecipes, err := recipe.GetRecipesLocal() if err != nil { - log.Fatal(err) - } - - for _, recipeLocal := range localRecipes { - if _, ok := knownRecipes[recipeLocal]; !ok { - knownRecipes[recipeLocal] = true + log.Infof("can't read local recipes: %s", err) + } else { + for _, recipeLocal := range localRecipes { + if _, ok := knownRecipes[recipeLocal]; !ok { + knownRecipes[recipeLocal] = true + } } } -- 2.47.2