diff --git a/pkg/recipe/loader.go b/pkg/recipe/loader.go index f937128..ace3059 100644 --- a/pkg/recipe/loader.go +++ b/pkg/recipe/loader.go @@ -45,7 +45,7 @@ func LoadRecipe(path string) (*Recipe, error) { recipe := NewRecipe() err = yaml.Unmarshal(dat, &recipe) if err != nil { - return nil, err + return nil, fmt.Errorf("error when reading %s file: %w", MetadataFileName+YAMLExtension, err) } recipe.Templates, err = loadTemplates(filepath.Join(rootDir, TemplatesDirName))